:root {
  --black: #050505;
  --ink: #121212;
  --soft-black: #181818;
  --white: #fffdf7;
  --paper: #f7f2e8;
  --cream: #f4dfc8;
  --stone: #efe2d1;
  --clay: #d68662;
  --peach: #f2b891;
  --burgundy: #8f2948;
  --cocoa: #51312a;
  --gold: #ffd000;
  --amber: #ffb000;
  --magenta: #c62b6a;
  --purple: #91168c;
  --taupe: #b19683;
  --muted: #9e978b;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mix-blend-mode: overlay;
}

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 100;
  width: min(1120px, calc(100vw - 32px));
  height: 58px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(18, 18, 18, 0.18);
  background: rgba(239, 226, 209, 0.9);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 18px 60px rgba(82, 58, 38, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(18, 18, 18, 0.68);
  font-size: 14px;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 108vh;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, 620px) minmax(280px, 470px) minmax(24px, 1fr);
  align-items: center;
  gap: 40px;
  padding: 110px 0 16vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-video,
.hero-shade,
.hero-grid,
.blueprint-grid,
.grid-dots {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: saturate(0.92) contrast(0.9);
  transform: scale(1.08);
  z-index: -5;
}

.hero-shade {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(81, 49, 42, 0.16) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 72% 32%, rgba(242, 184, 145, 0.72), transparent 32%),
    radial-gradient(circle at 19% 72%, rgba(143, 41, 72, 0.48), transparent 30%),
    linear-gradient(135deg, #f4dfc8 0%, #e6a076 44%, #c86b5f 74%, #8f2948 128%);
  background-size: 84px 84px, auto, auto, auto;
}

.hero-grid {
  z-index: -3;
  background-image:
    linear-gradient(rgba(81, 49, 42, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 49, 42, 0.1) 1px, transparent 1px);
  background-size: 9vw 9vw;
  mask-image: linear-gradient(180deg, transparent 0%, black 24%, black 76%, transparent 100%);
  opacity: 0.3;
}

.blueprint-grid {
  z-index: -2;
  background-image:
    linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(18, 18, 18, 0.18) calc(25% - 1px) 25%, transparent 25% 100%),
    linear-gradient(transparent 0 calc(33.333% - 1px), rgba(18, 18, 18, 0.12) calc(33.333% - 1px) 33.333%, transparent 33.333% 100%),
    linear-gradient(26deg, transparent 0 48.8%, rgba(143, 41, 72, 0.16) 49% 49.25%, transparent 49.45% 100%);
  background-size:
    min(72vw, 920px) min(72vw, 920px),
    min(62vw, 780px) min(62vw, 780px),
    420px 420px;
  background-position:
    right -10vw top 6vh,
    left -16vw bottom -12vh,
    center;
  mix-blend-mode: multiply;
  opacity: 0.52;
  mask-image: radial-gradient(circle at 50% 48%, black 0%, transparent 78%);
}

.grid-dots {
  z-index: -1;
  background-image: radial-gradient(rgba(81, 49, 42, 0.24) 1px, transparent 1.5px);
  background-size: 18px 18px;
  background-position: 12px 8px;
  opacity: 0.22;
  mask-image: linear-gradient(90deg, black 0%, transparent 68%);
}

.hero-layer {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  will-change: transform;
}

.layer-yellow {
  width: min(38vw, 520px);
  aspect-ratio: 1;
  right: -7vw;
  top: 13vh;
  background: rgba(239, 226, 209, 0.72);
}

.layer-magenta {
  width: min(28vw, 380px);
  aspect-ratio: 1;
  left: -8vw;
  bottom: 9vh;
  background: rgba(143, 41, 72, 0.82);
  transform: rotate(14deg);
}

.hero-content {
  grid-column: 2;
  max-width: 620px;
  will-change: transform, opacity;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: #7a203c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
}

h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
  max-width: 11ch;
}

.hero-copy {
  max-width: 600px;
  margin: 30px 0 0;
  color: rgba(18, 18, 18, 0.78);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button.primary {
  background: #d9a515;
  color: var(--black);
  border-color: #d9a515;
}

.button.ghost {
  background: rgba(18, 18, 18, 0.04);
  color: var(--ink);
  border-color: rgba(18, 18, 18, 0.16);
}

.hero-card {
  grid-column: 3;
  position: relative;
  z-index: 2;
  padding: clamp(18px, 3vw, 34px);
  background: rgba(239, 226, 209, 0.34);
  border: 1px solid rgba(81, 49, 42, 0.2);
  box-shadow: 0 34px 92px rgba(81, 49, 42, 0.26);
  backdrop-filter: blur(18px);
  will-change: transform;
}

.hero-card img {
  width: min(100%, 560px);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.32));
  animation: logoDropIn 1.45s cubic-bezier(0.16, 1, 0.3, 1) 260ms both;
  transform-origin: 50% 18%;
}

@keyframes logoDropIn {
  0% {
    opacity: 0;
    transform: translate3d(0, -110px, 0) scale(0.9) rotate(-4deg);
    filter:
      blur(10px)
      drop-shadow(0 40px 70px rgba(0, 0, 0, 0.18));
  }
  58% {
    opacity: 1;
    transform: translate3d(0, 10px, 0) scale(1.02) rotate(1.2deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.32));
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 6vh;
  width: 1px;
  height: 82px;
  background: rgba(18, 18, 18, 0.2);
  overflow: hidden;
}

.scroll-cue span {
  display: block;
  width: 100%;
  height: 32px;
  background: #8f2948;
  animation: cue 1.8s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(-40px);
  }
  100% {
    transform: translateY(96px);
  }
}

.scene {
  position: relative;
  min-height: 220vh;
}

.sticky-stage,
.showcase-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
}

.scene-dark,
.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-light {
  background: var(--cream);
  color: var(--ink);
}

.manifesto .sticky-stage {
  display: grid;
  place-items: center;
  padding: 96px 24px;
}

.scene-copy {
  width: min(100%, 1060px);
  position: relative;
  z-index: 2;
  transform-origin: 50% 45%;
  will-change: transform, opacity;
}

.scene-copy h2,
.showcase-text h2,
.section-head h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(36px, 6.5vw, 92px);
  line-height: 1.02;
  letter-spacing: 0;
}

.word-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.word-orbit span {
  position: absolute;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 208, 0, 0.34);
  font-size: clamp(74px, 16vw, 250px);
  font-weight: 900;
  line-height: 1;
  opacity: 0.72;
  will-change: transform;
}

.word-orbit span:nth-child(1) {
  left: 4vw;
  top: 14vh;
}

.word-orbit span:nth-child(2) {
  right: -10vw;
  top: 30vh;
}

.word-orbit span:nth-child(3) {
  left: 18vw;
  bottom: 10vh;
}

.word-orbit span:nth-child(4) {
  right: 12vw;
  bottom: 8vh;
}

.services,
.process,
.contact {
  position: relative;
  padding: clamp(88px, 11vw, 150px) 24px;
  overflow: hidden;
}

.section-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-warm {
  background-image:
    linear-gradient(90deg, rgba(81, 49, 42, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(81, 49, 42, 0.08) 1px, transparent 1px),
    radial-gradient(rgba(143, 41, 72, 0.17) 1px, transparent 1.5px);
  background-size:
    118px 118px,
    118px 118px,
    22px 22px;
  background-position:
    center,
    center,
    7px 7px;
  opacity: 0.56;
  mask-image: linear-gradient(180deg, transparent 0%, black 22%, black 78%, transparent 100%);
}

.grid-dark {
  background-image:
    linear-gradient(90deg, rgba(255, 208, 0, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(255, 253, 247, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 49.6%, rgba(198, 43, 106, 0.18) 49.8% 50%, transparent 50.2% 100%);
  background-size:
    76px 76px,
    76px 76px,
    360px 360px;
  opacity: 0.38;
  mask-image: radial-gradient(circle at 50% 42%, black 0%, transparent 74%);
}

.section-head {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto 52px;
}

.section-head p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 253, 247, 0.62);
  font-size: 18px;
  line-height: 1.8;
}

.section-light .section-head p:not(.eyebrow) {
  color: rgba(18, 18, 18, 0.64);
}

.service-grid {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(18, 18, 18, 0.18);
}

.service-card {
  min-height: 330px;
  padding: 28px;
  background: var(--stone);
  border: 1px solid rgba(18, 18, 18, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card span,
.step strong {
  color: var(--magenta);
  font-size: 13px;
  font-weight: 900;
}

.service-card h3 {
  margin: auto 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.service-card p,
.showcase-text p,
.contact-panel p {
  color: rgba(18, 18, 18, 0.68);
  font-size: 17px;
  line-height: 1.75;
}

.showcase {
  min-height: 205vh;
  background:
    radial-gradient(circle at 22% 48%, rgba(255, 208, 0, 0.24), transparent 30%),
    linear-gradient(135deg, #6b4a3a 0%, #37231c 46%, #1a1110 100%);
  color: var(--white);
  overflow: hidden;
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 208, 0, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 253, 247, 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 42% 50%, black 0%, transparent 68%);
  opacity: 0.26;
  pointer-events: none;
}

.showcase::after {
  content: "";
  position: absolute;
  width: min(62vw, 780px);
  aspect-ratio: 1;
  left: 6vw;
  top: 20vh;
  background: radial-gradient(circle, rgba(255, 208, 0, 0.2), transparent 62%);
  filter: blur(12px);
  pointer-events: none;
}

.ghost-logos {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ghost-logos img {
  position: absolute;
  width: min(64vw, 820px);
  opacity: 0.045;
  filter: saturate(0.8) blur(0.2px);
  will-change: transform, opacity;
}

.ghost-logos img:nth-child(1) {
  left: -12vw;
  top: 8vh;
}

.ghost-logos img:nth-child(2) {
  right: -14vw;
  top: 34vh;
  width: min(58vw, 720px);
}

.ghost-logos img:nth-child(3) {
  left: 20vw;
  bottom: -18vh;
  width: min(70vw, 900px);
}

.showcase-sticky {
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(300px, 540px) minmax(0, 620px) minmax(24px, 1fr);
  align-items: center;
  gap: 60px;
  padding-bottom: 10vh;
  overflow: visible;
}

.showcase-media {
  grid-column: 2;
  width: min(62vw, 660px);
  transform-origin: center;
  will-change: transform, opacity;
  position: relative;
  z-index: 2;
}

.showcase-media img {
  filter:
    drop-shadow(0 34px 90px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 48px rgba(255, 208, 0, 0.22));
}

.showcase-text {
  grid-column: 3;
  position: relative;
  z-index: 3;
  will-change: transform, opacity;
}

.showcase-text p {
  max-width: 560px;
  color: rgba(255, 253, 247, 0.76);
}

.timeline {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.step p {
  margin: 0;
  color: rgba(255, 253, 247, 0.76);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.45;
}

.contact-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: 420px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 38px;
  align-items: center;
  padding: clamp(26px, 5vw, 60px);
  background: #322941;
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-panel img {
  width: 180px;
}

.contact-panel p {
  color: rgba(255, 253, 247, 0.72);
  max-width: 680px;
}

#contact-title::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.08em;
  background: var(--gold);
  vertical-align: -0.08em;
  animation: caretBlink 0.9s steps(1) infinite;
}

.contact-copy {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms ease;
}

.contact-copy.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.copy-mail {
  position: relative;
  justify-self: end;
}

.copy-mail-button {
  cursor: pointer;
  font: inherit;
}

.copy-toast {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  min-width: 190px;
  padding: 10px 12px;
  background: rgba(255, 253, 247, 0.96);
  color: #322941;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
}

.copy-toast::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: rgba(255, 253, 247, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.copy-toast.is-visible {
  animation: toastFloatDissolve 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes toastFloatDissolve {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  28% {
    opacity: 1;
    transform: translate3d(0, -14px, 0);
  }
  54% {
    opacity: 0.86;
    transform: translate3d(0, -8px, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
}

@keyframes caretBlink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

.site-footer {
  padding: 46px 24px 56px;
  display: grid;
  justify-items: center;
  gap: 14px;
  background:
    linear-gradient(90deg, rgba(214, 134, 98, 0.46), rgba(143, 41, 72, 0.2)),
    var(--cream);
  color: rgba(18, 18, 18, 0.58);
  text-align: center;
}

.site-footer img {
  width: min(360px, 82vw);
}

.site-footer p,
.site-footer small {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 680ms ease,
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 900px) {
  .site-header {
    top: 12px;
    width: calc(100vw - 20px);
  }

  nav {
    gap: 12px;
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 20px 1fr 20px;
    gap: 26px;
    padding-top: 100px;
  }

  .hero-content,
  .hero-card {
    grid-column: 2;
  }

  .hero-card {
    max-width: 520px;
  }

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

  .showcase-sticky {
    grid-template-columns: 20px 1fr 20px;
    align-content: center;
    gap: 28px;
  }

  .showcase-media,
  .showcase-text {
    grid-column: 2;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand span {
    display: none;
  }

  nav {
    gap: 9px;
  }

  h1 {
    font-size: clamp(46px, 16vw, 76px);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .service-card {
    min-height: 260px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .word-orbit span {
    font-size: clamp(58px, 22vw, 130px);
  }
}

@media (max-width: 620px) and (orientation: portrait) {
  .hero {
    min-height: auto;
    padding-bottom: 74px;
  }

  .layer-yellow {
    width: 66vw;
    right: -43vw;
    top: 130px;
    opacity: 0.72;
  }

  .layer-magenta {
    width: 44vw;
    left: -21vw;
    bottom: 92px;
    opacity: 0.78;
  }

  .hero-card {
    width: 100%;
    margin-top: 26px;
    padding: 16px;
    background: rgba(239, 226, 209, 0.74);
    border-color: rgba(81, 49, 42, 0.16);
    backdrop-filter: none;
    box-shadow: 0 18px 46px rgba(81, 49, 42, 0.16);
    transform: none !important;
  }

  .hero-card img {
    animation: none;
    filter: drop-shadow(0 10px 20px rgba(81, 49, 42, 0.18));
  }

  .manifesto .sticky-stage {
    align-items: start;
    padding-top: 190px;
  }

  .word-orbit span:nth-child(1) {
    left: -12vw;
    top: 12vh;
  }

  .word-orbit span:nth-child(2) {
    right: -58vw;
    top: 24vh;
  }

  .word-orbit span:nth-child(3) {
    left: 28vw;
    bottom: 24vh;
  }

  .word-orbit span:nth-child(4) {
    right: 6vw;
    bottom: 32vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
