:root {
  --ink: #20201e;
  --muted: #64645e;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #dad7cc;
  --green: #546b57;
  --clay: #a15f3f;
  --blue: #48677a;
  --shadow: 0 18px 50px rgba(32, 32, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(20px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 245, 239, 0.94);
  box-shadow: 0 8px 30px rgba(32, 32, 30, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  font-size: 15px;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease;
}

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

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

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(20px, 7vw, 96px) 10svh;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(21, 21, 19, 0.78), rgba(21, 21, 19, 0.3) 52%, rgba(21, 21, 19, 0.1)),
    linear-gradient(0deg, rgba(21, 21, 19, 0.55), rgba(21, 21, 19, 0.05) 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section > .section-kicker {
  width: min(1180px, 100%);
  margin: 0 auto 16px;
}

.hero .eyebrow {
  color: #e0c3a1;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.9);
  word-break: keep-all;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  border-color: #fff;
  color: var(--ink);
  background: #fff;
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.section {
  padding: clamp(74px, 11vw, 144px) clamp(20px, 7vw, 96px);
}

.intro-grid,
.section-heading,
.contact-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(32px, 7vw, 92px);
}

.intro-copy {
  color: var(--muted);
  font-size: 18px;
  word-break: keep-all;
}

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

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section-heading p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  word-break: keep-all;
}

.service-grid,
.case-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 16px;
}

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

.service-card,
.work-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-card span,
.work-card span {
  display: block;
  margin-bottom: 42px;
  color: var(--blue);
  font-weight: 800;
}

.service-card p,
.work-card p {
  margin-bottom: 0;
  color: var(--muted);
  word-break: keep-all;
}

.process-section {
  color: #fff;
  background: var(--green);
}

.process-section .section-kicker {
  color: #d8b28a;
}

.process-section h2 {
  width: min(920px, 100%);
  margin: 0 auto 46px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  min-height: 250px;
  padding: 28px 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  counter-increment: process;
}

.process-list li::before {
  display: block;
  margin-bottom: 42px;
  color: rgba(255, 255, 255, 0.58);
  content: "0" counter(process);
  font-weight: 800;
}

.process-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.process-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  word-break: keep-all;
}

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

.works-subheading {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
}

.records-heading {
  margin-top: 54px;
}

.works-subheading span {
  display: block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.works-subheading h3 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  word-break: keep-all;
}

.works-subheading p {
  width: min(620px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
}

.case-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.85fr));
  width: min(1180px, 100%);
  margin: 0 auto 22px;
  gap: 18px;
}

.case-feature {
  overflow: hidden;
  min-height: 390px;
  border-radius: 8px;
  background: #1f2a33;
}

.case-feature-inner {
  position: relative;
  display: block;
  height: 100%;
  min-height: inherit;
  color: #fff;
}

.case-feature img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 220ms ease;
}

.case-feature:hover img {
  transform: scale(1.035);
}

.case-feature-inner::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(15, 20, 24, 0.78), rgba(15, 20, 24, 0.08) 62%),
    linear-gradient(90deg, rgba(15, 20, 24, 0.52), rgba(15, 20, 24, 0));
  content: "";
}

.case-feature-copy {
  position: absolute;
  left: clamp(20px, 3vw, 32px);
  right: clamp(20px, 3vw, 32px);
  bottom: clamp(20px, 3vw, 30px);
  z-index: 1;
}

.case-feature-copy span {
  display: block;
  margin-bottom: 14px;
  color: #d8b28a;
  font-size: 14px;
  font-weight: 800;
}

.case-feature-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(27px, 3.5vw, 42px);
  line-height: 1.12;
  word-break: keep-all;
}

.case-feature:not(:first-child) .case-feature-copy h3 {
  font-size: 28px;
}

.case-feature-copy p {
  width: min(520px, 100%);
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
}

.case-feature-copy dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.case-feature-copy dl div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: baseline;
}

.case-feature-copy dt,
.case-feature-copy dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.case-feature-copy dt {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.case-feature-copy dd {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.completion-list {
  width: min(1180px, 100%);
  margin: 0 auto 44px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.completion-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 14px;
  font-weight: 800;
}

.completion-list p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
}

.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(31, 42, 51, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(31, 42, 51, 0.1);
}

.case-card a {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.case-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  background: #ebe7df;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 24px;
}

.case-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  color: var(--clay);
  font-size: 14px;
  font-weight: 800;
}

.case-body h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.28;
  word-break: keep-all;
}

.case-body p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

.case-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.case-link {
  margin-top: 18px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.contact-section {
  background: var(--paper);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 7vw, 86px);
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-panel p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  word-break: keep-all;
}

.contact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list div:first-child {
  padding-top: 0;
}

.contact-list dt {
  color: var(--muted);
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
  font-weight: 700;
  word-break: keep-all;
}

.contact-list a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 34px 20px;
  color: var(--muted);
  background: #ebe7db;
}

.site-footer img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .service-grid,
  .case-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-feature-grid {
    grid-template-columns: 1fr;
  }

  .case-feature,
  .case-feature-inner,
  .case-feature img {
    min-height: 320px;
  }

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

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
    padding: 10px 18px;
  }

  .brand span {
    font-size: 15px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(247, 245, 239, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

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

  .site-nav a {
    padding: 12px 10px;
  }

  .hero {
    min-height: 92svh;
    padding: 104px 20px 8svh;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(21, 21, 19, 0.72), rgba(21, 21, 19, 0.18) 72%),
      linear-gradient(90deg, rgba(21, 21, 19, 0.7), rgba(21, 21, 19, 0.1));
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 18px;
  }

  .service-grid,
  .case-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-list li {
    min-height: auto;
  }

  .service-card span,
  .process-list li::before {
    margin-bottom: 24px;
  }

  .case-body {
    min-height: auto;
    padding: 22px 20px;
  }

  .case-feature,
  .case-feature-inner,
  .case-feature img {
    min-height: 290px;
  }

  .case-feature-copy h3,
  .case-feature:not(:first-child) .case-feature-copy h3 {
    font-size: 26px;
  }

  .contact-panel {
    padding: 26px 20px;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    align-items: flex-start;
  }
}
