:root {
  --orange: #E76F1B;
  --ink: #16181d;
  --body: #4a4d54;        /* 주요 본문 */
  --body-muted: #6b6e75;  /* 보조 본문(카드) */
  --body-1: #4a4d54;
  --body-2: #4a4d54;
  --body-3: #6b6e75;
  --nav-text: #3a3d44;
  --muted: #9a978f;
  --contact-label: #7c8598;
  --contact-body: #b7bac2;
  --border-1: #ecebe7;
  --border-2: #e2e0da;
  --border-3: #dedcd6;
  --bg-alt-1: #f7f6f3;
  --bg-alt-2: #f6f5f2;

  --serif: 'Cormorant Garamond', serif;
  --mono: 'Space Mono', monospace;
  --sans: 'Pretendard Variable', Pretendard, sans-serif;

  /* ----- type scale ----- */
  --fs-display: clamp(30px, 4.4vw + 14px, 82px);  /* hero H1 */
  --fs-h2: clamp(28px, 2.4vw + 15px, 38px);        /* section heading */
  --fs-serif-accent: 28px;   /* serif 카드 타이틀·마퀴 */
  --fs-title: 18px;          /* 리스트 아이템 타이틀 */
  --fs-lead: 18px;           /* 히어로 리드 문단 */
  --fs-body: 16px;           /* 표준 본문 */
  --fs-body-sm: 15px;        /* 콤팩트 본문(카드) */
  --fs-eyebrow: 12px;        /* 섹션 overline */
  --fs-label: 11px;          /* mono 메타 라벨 */
  --lh-heading: 1.35;
  --lh-body: 1.75;
  --ls-eyebrow: .18em;
  --ls-label: .16em;
}

* { box-sizing: border-box; }

/* anchor scrolling is handled by JS (js/main.js) for a gentler easing;
   keep native behavior instant to avoid fighting the JS animation */
html { scroll-behavior: auto; }

body {
  margin: 0;
  background: #ffffff;
  font-family: var(--sans);
  color: var(--ink);
}

img { max-width: 100%; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  margin-bottom: 18px;
}
.eyebrow-navy { color: var(--ink); }
.eyebrow-orange { color: var(--orange); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: .03em;
  color: var(--body-1);
  text-decoration: none;
  border-bottom: 1px solid var(--body-1);
  padding-bottom: 3px;
  transition: opacity .2s ease;
}
.text-link:hover { opacity: .65; }
.text-link .arrow { font-family: var(--mono); }

@keyframes esprntUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 15%;
  background: #ffffff;
  border-bottom: 1px solid var(--border-1);
  box-shadow: 0 8px 20px rgba(22, 24, 29, 0);
  transition: box-shadow .25s ease;
}
.nav--scrolled { box-shadow: 0 8px 20px rgba(22, 24, 29, .08); }
.nav-logo { display: block; line-height: 0; }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  margin-left: auto;
}
.nav-links {
  display: flex;
  gap: 38px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--nav-text);
}
.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--orange); }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
}
.lang-dot { color: var(--muted); }
.lang-btn {
  color: var(--nav-text);
  text-decoration: none;
  transition: color .2s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active {
  color: var(--orange);
  pointer-events: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 15% 84px;
  animation: esprntUp .8s ease both;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72);
  opacity: .85;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.5) 50%, rgba(255,255,255,.12) 100%);
  z-index: 1;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 30px;
  white-space: nowrap;
}
.hero-copy p {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 40px;
  max-width: 460px;
}
.hero-cta { text-align: left; margin-top: 36px; }

/* ---------- trusted by ---------- */
.trusted-by {
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  background: var(--bg-alt-2);
  box-shadow: inset 0 1px 6px rgba(0,0,0,.04);
  overflow: hidden;
  padding: 34px 0;
}
.trusted-by-label {
  text-align: center;
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-eyebrow);
  color: var(--muted);
  margin-bottom: 24px;
}
.trusted-by-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.trusted-by-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  font-family: var(--serif);
  font-size: var(--fs-serif-accent);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--nav-text);
  white-space: nowrap;
  animation: trustedByScroll 42s linear infinite;
}
.trusted-by-track span { flex: none; }
.trusted-by-marquee:hover .trusted-by-track { animation-play-state: paused; }

@keyframes trustedByScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trusted-by-track { animation: none; }
  .trusted-by-marquee { overflow-x: auto; }
}

/* ---------- approach ---------- */
.approach { padding: 104px 15%; }
.approach-inner { max-width: 760px; }
.approach-inner h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: var(--lh-heading);
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 30px;
}
.approach-inner p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--body);
  margin: 0 0 20px;
}
.approach-inner p:last-child { margin-bottom: 0; }

/* ---------- perspectives ---------- */
.perspectives { padding: 96px 15% 104px; background: var(--bg-alt-1); }
.perspectives-heading {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: var(--lh-heading);
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 56px;
  max-width: 640px;
}
.perspectives-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border-2);
}
.perspective-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-2);
}
.perspective-num {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding-top: 4px;
}
.perspective-title {
  font-size: var(--fs-title);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.perspective-row p {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--body-muted);
  margin: 0;
}

/* ---------- partners ---------- */
.partners { padding: 104px 15%; background: #ffffff; }
.partners-heading {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: var(--lh-heading);
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 640px;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 56px;
}
.partner-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 24px;
}
.partner-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.partner-card:hover .partner-image img { transform: scale(1.1); }
.partner-card h3 {
  font-family: var(--serif);
  font-size: var(--fs-serif-accent);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 10px;
}
.partner-card p {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--body-muted);
  margin: 0;
}

/* ---------- process ---------- */
.process { padding: 104px 15%; background: var(--bg-alt-1); }
.process-heading {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: var(--lh-heading);
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 56px;
  max-width: 640px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.process-step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.process-num { font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--ink); }
.process-line { flex: 1; height: 1px; background: var(--border-3); }
.process-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.process-title { font-size: var(--fs-title); font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.process-step p { font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--body-muted); margin: 0; }

/* ---------- work ---------- */
.work { padding: 104px 15%; }
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.work-head h2 { font-size: var(--fs-h2); font-weight: 600; line-height: var(--lh-heading); letter-spacing: -.01em; color: var(--ink); margin: 0; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-image {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-image-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: repeating-linear-gradient(135deg, #eeedea 0 12px, #e4e3df 12px 24px);
  transition: transform .5s ease;
}
.work-item:hover .work-image-media,
.work-item.is-active .work-image-media { transform: scale(1.06); }
.work-placeholder {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}
.work-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 20px;
  background: rgba(22, 24, 29, 0);
  opacity: 0;
  transition: opacity .3s ease, background .3s ease;
}
.work-item:hover .work-overlay,
.work-item.is-active .work-overlay {
  opacity: 1;
  background: rgba(22, 24, 29, .55);
}
.work-overlay-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-family: var(--mono);
}
.work-overlay-row:first-child { border-top: none; padding-top: 0; }
.work-overlay-label {
  font-size: 10px;
  letter-spacing: var(--ls-label);
  color: rgba(255, 255, 255, .6);
  white-space: nowrap;
}
.work-overlay-value {
  font-size: 13px;
  letter-spacing: .02em;
  color: #fff;
  text-align: right;
}

/* ---------- contact ---------- */
.contact { padding: 104px 15%; background: var(--ink); color: #fff; }
.contact-grid { max-width: 720px; }
.contact-logo { height: 88px; width: auto; display: block; margin: 0 0 48px; }
.contact-grid p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--contact-body); margin: 0; }
.contact-grid p.contact-lead {
  font-size: clamp(13px, 1.9vw + 8px, 32px);
  font-weight: 600;
  line-height: var(--lh-heading);
  color: #fff;
  white-space: nowrap;
  margin: 0 0 32px;
}
.contact-details {
  display: grid;
  gap: 22px;
  text-align: left;
}
.contact-label {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--contact-label);
  margin-bottom: 6px;
}
.contact-value { font-size: var(--fs-body-sm); }
.contact-value a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: opacity .2s ease; }
.contact-value a:hover { opacity: .7; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav, .hero, .approach, .perspectives, .partners, .process, .work, .contact {
    padding-left: 8%;
    padding-right: 8%;
  }
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
}

@media (max-width: 860px) {
  .hero { padding-top: 64px; padding-bottom: 68px; }
  .hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.42) 100%);
  }
  .partners-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .nav, .hero, .approach, .perspectives, .partners, .process, .work, .contact {
    padding-left: 5%;
    padding-right: 5%;
  }
  .trusted-by-track { gap: 28px; font-size: 20px; }
  .nav { flex-wrap: nowrap; gap: 8px; padding-top: 16px; padding-bottom: 16px; align-items: flex-start; }
  .nav-logo img { height: 28px; }
  .nav-right { gap: 12px; padding-top: 2px; }
  .nav-links {
    gap: clamp(6px, 2.4vw, 20px);
    flex-wrap: nowrap;
    font-size: clamp(10px, 2.6vw, 14px);
    letter-spacing: 0;
    white-space: nowrap;
  }
  .lang-switch { gap: 5px; font-size: 10px; }
  .hero h1 { font-weight: 600; }
  .hero-copy p { font-size: 17px; max-width: none; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .work-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 420px) {
  .process-grid { grid-template-columns: 1fr; }
  .work-grid { gap: 10px; }
}

@media (max-width: 520px) {
  .contact-grid p.contact-lead { font-size: 15px; }
}
@media (max-width: 420px) {
  .contact-grid p.contact-lead { font-size: 13.5px; }
}
@media (max-width: 340px) {
  .contact-grid p.contact-lead { font-size: 11.5px; }
}
