:root {
  --black: #171717;
  --black-soft: #22201d;
  --white: #171717;
  --cream: #f5f3ea;
  --paper: #fbfaf3;
  --muted: #746f68;
  --line: rgba(23, 23, 23, 0.12);
  --gold: #43b5a4;
  --gold-soft: rgba(67, 181, 164, 0.18);
  --on-dark: #f7f4ee;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--white);
  font-family: "Inter", "Noto Sans KR", sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(20px, 4vw, 64px);
  color: var(--on-dark);
  transition: background 0.35s ease, padding 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 243, 0.82);
  backdrop-filter: blur(18px);
  padding-block: 18px;
  color: var(--black);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-nav a {
  position: relative;
  padding-bottom: 6px;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(67, 181, 164, 0.16);
  color: var(--on-dark);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.3s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 120px clamp(20px, 5vw, 76px) 72px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("./assets/hero.jpg") center / cover no-repeat;
  transform: scale(1.05);
  animation: heroDrift 12s ease-out forwards;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.34)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.02) 46%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 1040px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(58px, 11vw, 164px);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--on-dark);
}

.hero-sub {
  margin-bottom: 10px;
  color: rgba(247, 244, 238, 0.92);
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 600;
}

.hero-kor {
  margin-bottom: 0;
  color: rgba(247, 244, 238, 0.72);
  font-size: clamp(15px, 1.4vw, 20px);
}

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

.hero-actions .primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
}

.hero-actions .ghost {
  background: rgba(247, 244, 238, 0.12);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1px;
  max-width: 680px;
  margin: 42px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(247, 244, 238, 0.18);
  background: rgba(247, 244, 238, 0.18);
}

.hero-metrics div {
  min-height: 104px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.hero-metrics dt {
  margin-bottom: 10px;
  color: var(--on-dark);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
  line-height: 1;
}

.hero-metrics dd {
  margin: 0;
  color: rgba(247, 244, 238, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.scroll-hint {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: 72px;
  writing-mode: vertical-rl;
  color: rgba(247, 244, 238, 0.5);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(86px, 12vw, 180px) clamp(20px, 4vw, 64px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.intro-copy h2,
.section-head h2,
.brand-statement h2,
.contact-copy h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 7vw, 108px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.intro-text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.75;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px) clamp(76px, 9vw, 132px);
}

.proof-item {
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
}

.proof-item:first-child {
  border-left: 1px solid var(--line);
}

.proof-item strong {
  color: var(--black);
  font-size: clamp(22px, 2.7vw, 40px);
  font-weight: 900;
  line-height: 1;
}

.proof-item span {
  max-width: 280px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 72px);
}

.projects {
  max-width: none;
}

.projects .section-head {
  max-width: var(--max);
  margin-inline: auto;
}

.project-card {
  position: relative;
  min-height: min(92vh, 880px);
  max-width: calc(var(--max) - 128px);
  margin: 0 auto 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(55, 50, 43, 0.16);
}

.project-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.86);
  transform: scale(1.02);
  transition: transform 1.2s ease, filter 1.2s ease;
}

.project-card:hover img {
  filter: saturate(1) brightness(0.96);
  transform: scale(1.06);
}

.project-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.06) 58%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.02));
  content: "";
}

.project-content {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  bottom: clamp(24px, 5vw, 72px);
  z-index: 1;
  max-width: 620px;
}

.project-index {
  display: block;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.project-content h3 {
  margin-bottom: 10px;
  font-size: clamp(44px, 8vw, 118px);
  line-height: 0.94;
  font-weight: 900;
  color: var(--on-dark);
}

.project-en,
.project-type {
  margin-bottom: 8px;
  color: rgba(247, 244, 238, 0.86);
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 700;
}

.project-type {
  color: var(--gold);
}

.project-desc {
  max-width: 560px;
  margin: 18px 0 28px;
  color: rgba(247, 244, 238, 0.76);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
}

.button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(247, 244, 238, 0.42);
  border-radius: 999px;
  background: rgba(247, 244, 238, 0.04);
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.button:hover,
.submit-button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

.contact .submit-button {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
}

.brand-experience {
  max-width: none;
  padding-inline: 0;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(67, 181, 164, 0.12), rgba(67, 181, 164, 0.02)),
    var(--paper);
}

.brand-statement {
  max-width: var(--max);
  margin: 0 auto clamp(50px, 7vw, 100px);
  padding-inline: clamp(20px, 4vw, 64px);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  width: max-content;
  padding: 28px clamp(20px, 4vw, 64px);
  animation: marquee 38s linear infinite;
}

.marquee img {
  display: block;
  width: clamp(180px, 18vw, 260px);
  height: clamp(78px, 8vw, 112px);
  object-fit: contain;
  flex: 0 0 auto;
  filter: grayscale(0.1);
  transition: transform 220ms ease, filter 220ms ease;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee img:hover {
  transform: translateY(-3px);
  filter: grayscale(0);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.system-card {
  min-height: 330px;
  padding: clamp(22px, 2.5vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(67, 181, 164, 0.12), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.42);
}

.system-card span {
  display: block;
  margin-bottom: 72px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.system-card h3 {
  min-height: 72px;
  margin-bottom: 24px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
}

.system-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  position: relative;
  min-height: 220px;
  padding: 30px 22px;
  border-right: 1px solid var(--line);
}

.timeline li:first-child {
  border-left: 1px solid var(--line);
}

.timeline li::before {
  position: absolute;
  top: -5px;
  left: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.timeline span {
  display: block;
  margin-bottom: 74px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.timeline strong {
  display: block;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.35;
}

.contact {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.85fr);
  gap: clamp(36px, 7vw, 110px);
  padding-inline: clamp(20px, 6vw, 96px);
  background:
    radial-gradient(circle at 82% 18%, rgba(67, 181, 164, 0.28), transparent 34%),
    linear-gradient(135deg, #f8f6ed, #e5f2ed 70%);
  border-top: 1px solid var(--line);
}

.contact-copy p {
  max-width: 520px;
  margin: 28px 0 36px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.75;
}

address {
  display: grid;
  gap: 10px;
  font-style: normal;
  color: var(--muted);
}

address strong {
  color: var(--black);
  font-size: 18px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-self: start;
}

.contact-form label {
  display: grid;
  gap: 10px;
}

.contact-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--black);
  outline: 0;
  padding: 14px 0;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(23, 23, 23, 0.34);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--gold);
}

.contact-form .full,
.submit-button {
  grid-column: 1 / -1;
}

.submit-button {
  margin-top: 18px;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

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

@keyframes heroDrift {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1.02);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 22;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 21;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    background: rgba(251, 250, 243, 0.98);
    color: var(--black);
    font-size: 28px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    padding-bottom: 48px;
  }

  .scroll-hint {
    display: none;
  }

  .intro-section,
  .contact {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-item {
    min-height: 0;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .section-head {
    display: block;
  }

  .project-card {
    min-height: 74vh;
    margin-bottom: 20px;
  }

  .project-card::after {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08) 70%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.06));
  }

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

  .system-card span,
  .timeline span {
    margin-bottom: 44px;
  }

  .timeline {
    display: block;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .timeline li,
  .timeline li:first-child {
    min-height: auto;
    padding: 26px 24px 42px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .timeline li::before {
    top: 32px;
    left: -5px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 18px 18px;
  }

  .brand {
    font-size: 12px;
  }

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

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions .button {
    flex: 1 1 160px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-top: 28px;
  }

  .hero-metrics div {
    min-height: 76px;
    padding: 16px;
  }

  .system-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .project-content {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }

  .project-content h3 {
    font-size: clamp(38px, 13vw, 62px);
  }

  .site-footer {
    display: grid;
  }
}
