:root {
  --yg-ink: #131619;
  --yg-paper: #f6f4ef;
  --yg-white: #ffffff;
  --yg-blue: #2f5bff;
  --yg-blue-dark: #1538b8;
  --yg-line: rgba(19, 22, 25, 0.16);
  --yg-muted: #687078;
  --yg-max: 1440px;
  --yg-pad: clamp(20px, 4.6vw, 72px);
  --yg-section: clamp(88px, 11vw, 168px);
  --yg-sans: Pretendard, SUIT, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  --yg-serif: "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--yg-paper);
  color: var(--yg-ink);
  font-family: var(--yg-sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--yg-blue); outline-offset: 4px; }
::selection { background: var(--yg-blue); color: #fff; }

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 14px;
  left: 14px;
  padding: 10px 16px;
  background: #fff;
  color: #000;
}

.yg-shell {
  width: min(100%, var(--yg-max));
  margin-inline: auto;
  padding-inline: var(--yg-pad);
}
.yg-section { padding-block: var(--yg-section); }
.yg-section--dark { background: var(--yg-ink); color: var(--yg-white); }
.yg-section--white { background: var(--yg-white); }
.yg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--yg-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.yg-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.yg-heading {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2.25rem, 5vw, 5.7rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 720;
}
.yg-heading .accent { color: var(--yg-blue); }
.yg-section-lead {
  max-width: 680px;
  margin: 28px 0 0 auto;
  color: var(--yg-muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
}
.yg-rule { border-top: 1px solid var(--yg-line); }
.yg-meta { color: var(--yg-muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.yg-site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 78px;
  color: #fff;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.yg-site-header.is-scrolled,
.admin-bar .yg-site-header.is-scrolled {
  color: var(--yg-ink);
  background: rgba(246, 244, 239, .94);
  border-color: var(--yg-line);
  backdrop-filter: blur(18px);
}
.yg-header-inner {
  width: min(100%, var(--yg-max));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--yg-pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 42px;
}
.yg-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img { width: auto; max-height: 42px; }
.yg-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--yg-serif);
  font-style: italic;
  font-size: .88rem;
}
.yg-nav ul { list-style: none; display: flex; justify-content: center; gap: 32px; padding: 0; margin: 0; }
.yg-nav a { position: relative; font-size: .88rem; font-weight: 700; }
.yg-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--yg-blue); transition: right .2s ease; }
.yg-nav a:hover::after, .yg-nav a:focus-visible::after { right: 0; }
.yg-header-cta { display: inline-flex; align-items: center; gap: 14px; font-size: .83rem; font-weight: 800; }
.yg-header-cta::after { content: "↗"; font-size: 1rem; }
.yg-menu-toggle { display: none; width: 42px; height: 42px; border: 0; color: inherit; background: transparent; cursor: pointer; }
.yg-menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.yg-hero {
  position: relative;
  min-height: min(930px, 100svh);
  display: grid;
  align-items: end;
  color: #fff;
  background: #292b2d center / cover no-repeat;
  isolation: isolate;
}
.yg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 9, 12, .82) 0%, rgba(7, 9, 12, .46) 44%, rgba(7, 9, 12, .08) 75%),
              linear-gradient(0deg, rgba(7, 9, 12, .58) 0%, transparent 45%);
}
.yg-hero-inner {
  width: min(100%, var(--yg-max));
  margin-inline: auto;
  padding: 150px var(--yg-pad) clamp(52px, 8vw, 108px);
}
.yg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 60px; align-items: end; }
.yg-hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.yg-hero-eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--yg-blue); }
.yg-hero h1 { margin: 0; max-width: 850px; font-size: clamp(3.1rem, 7.3vw, 7.6rem); line-height: .96; letter-spacing: -.065em; font-weight: 740; }
.yg-hero h1 em { display: block; margin-top: .12em; font-family: var(--yg-serif); font-weight: 400; letter-spacing: -.03em; }
.yg-hero-copy { max-width: 420px; margin: 0 0 22px auto; color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.yg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.yg-button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  background: var(--yg-blue);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.yg-button:hover { transform: translateY(-2px); background: var(--yg-blue-dark); }
.yg-button--ghost { border-color: rgba(255,255,255,.48); background: transparent; }
.yg-button--ghost:hover { background: #fff; color: var(--yg-ink); }
.yg-concept-badge { position: absolute; right: var(--yg-pad); bottom: 18px; padding: 7px 10px; background: rgba(0,0,0,.5); color: rgba(255,255,255,.8); font-size: .67rem; letter-spacing: .08em; }

.yg-stats { background: var(--yg-blue); color: #fff; }
.yg-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.yg-stat { min-height: 168px; padding: 34px clamp(20px, 3vw, 44px); border-right: 1px solid rgba(255,255,255,.25); display: flex; flex-direction: column; justify-content: space-between; }
.yg-stat:last-child { border-right: 0; }
.yg-stat strong { font-size: clamp(2.4rem, 4vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.yg-stat span { font-size: .82rem; font-weight: 700; letter-spacing: .06em; }

.yg-intro-grid { display: grid; grid-template-columns: .62fr 1.38fr; gap: clamp(40px, 9vw, 140px); align-items: start; }
.yg-intro-note { position: sticky; top: 116px; color: var(--yg-muted); font-size: .88rem; }
.yg-intro-note strong { display: block; margin-bottom: 12px; color: var(--yg-ink); font-size: 1rem; }
.yg-intro-copy { margin: 0; font-size: clamp(2rem, 4.2vw, 4.8rem); line-height: 1.12; letter-spacing: -.055em; }
.yg-intro-copy em { font-family: var(--yg-serif); font-weight: 400; color: var(--yg-blue); }

.yg-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 42px 0 34px; }
.yg-filter-chip { padding: 9px 14px; border: 1px solid var(--yg-line); border-radius: 100px; background: transparent; color: var(--yg-ink); font-size: .82rem; font-weight: 700; }
.yg-filter-chip.is-active { border-color: var(--yg-ink); background: var(--yg-ink); color: #fff; }
.yg-project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(22px, 3vw, 44px) 20px; }
.yg-project-card { grid-column: span 6; position: relative; }
.yg-project-card:nth-child(3n + 1) { grid-column: span 7; }
.yg-project-card:nth-child(3n + 2) { grid-column: span 5; margin-top: clamp(36px, 8vw, 112px); }
.yg-project-card:nth-child(3n) { grid-column: 3 / span 8; margin-top: clamp(24px, 5vw, 68px); }
.yg-project-image { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #ddd; }
.yg-project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.yg-project-card:hover .yg-project-image img { transform: scale(1.035); }
.yg-project-no { position: absolute; top: 12px; left: 14px; z-index: 1; color: #fff; font-size: .75rem; font-weight: 800; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.yg-project-info { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding-top: 17px; border-top: 1px solid var(--yg-ink); }
.yg-project-info h3 { margin: 0; font-size: clamp(1.18rem, 2vw, 1.6rem); letter-spacing: -.035em; }
.yg-project-info p { margin: 4px 0 0; color: var(--yg-muted); font-size: .84rem; }
.yg-project-arrow { font-size: 1.25rem; }
.yg-image-note { position: absolute; right: 9px; bottom: 8px; padding: 4px 7px; background: rgba(0,0,0,.55); color: rgba(255,255,255,.82); font-size: .62rem; letter-spacing: .04em; }

.yg-service-list { margin-top: 72px; border-top: 1px solid rgba(255,255,255,.25); }
.yg-service-item { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 28px; align-items: start; padding: 38px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.yg-service-index { color: var(--yg-blue); font-family: var(--yg-serif); font-size: 1.7rem; }
.yg-service-item h3 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2.5rem); letter-spacing: -.04em; }
.yg-service-item p { margin: 0; color: rgba(255,255,255,.68); }

.yg-quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.yg-quote-panel { padding: clamp(28px, 4vw, 54px); background: var(--yg-blue); color: #fff; }
.yg-quote-panel h3 { margin: 0 0 34px; font-size: clamp(1.9rem, 3.4vw, 3.5rem); line-height: 1.13; letter-spacing: -.05em; }
.yg-quote-lines { list-style: none; margin: 0; padding: 0; }
.yg-quote-lines li { display: flex; justify-content: space-between; gap: 22px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.3); }
.yg-quote-lines small { color: rgba(255,255,255,.72); }
.yg-quote-copy { padding-top: 14px; }
.yg-quote-copy p { color: var(--yg-muted); }
.yg-checks { display: grid; gap: 14px; margin: 34px 0; }
.yg-check { display: grid; grid-template-columns: 28px 1fr; gap: 13px; align-items: start; }
.yg-check::before { content: "✓"; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--yg-blue); color: var(--yg-blue); font-size: .78rem; }

.yg-process { counter-reset: process; margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--yg-line); border-left: 1px solid var(--yg-line); }
.yg-process-item { counter-increment: process; min-height: 240px; padding: 24px; border-right: 1px solid var(--yg-line); border-bottom: 1px solid var(--yg-line); }
.yg-process-item::before { content: "0" counter(process); display: block; margin-bottom: 58px; color: var(--yg-blue); font-family: var(--yg-serif); font-size: 1.1rem; }
.yg-process-item h3 { margin: 0 0 8px; font-size: 1.18rem; }
.yg-process-item p { margin: 0; color: var(--yg-muted); font-size: .88rem; }

.yg-faq { max-width: 980px; margin: 62px auto 0; border-top: 1px solid var(--yg-line); }
.yg-faq details { border-bottom: 1px solid var(--yg-line); }
.yg-faq summary { padding: 26px 54px 26px 0; list-style: none; cursor: pointer; position: relative; font-weight: 800; font-size: 1.06rem; }
.yg-faq summary::-webkit-details-marker { display: none; }
.yg-faq summary::after { content: "+"; position: absolute; right: 10px; top: 23px; color: var(--yg-blue); font-size: 1.4rem; transition: transform .2s ease; }
.yg-faq details[open] summary::after { transform: rotate(45deg); }
.yg-faq details p { max-width: 760px; margin: -4px 0 28px; color: var(--yg-muted); }

.yg-contact { position: relative; overflow: hidden; background: var(--yg-blue); color: #fff; }
.yg-contact::after { content: "Y"; position: absolute; right: -2vw; bottom: -17vw; color: rgba(255,255,255,.08); font-family: var(--yg-serif); font-style: italic; font-size: min(58vw, 760px); line-height: 1; pointer-events: none; }
.yg-contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; }
.yg-contact h2 { margin: 0; max-width: 900px; font-size: clamp(3rem, 7vw, 7.5rem); line-height: .98; letter-spacing: -.065em; }
.yg-contact h2 em { display: block; font-family: var(--yg-serif); font-weight: 400; }
.yg-contact-list { display: grid; gap: 10px; }
.yg-contact-link { padding: 17px 0; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.34); font-weight: 800; }
.yg-contact-link { word-break: break-all; }
.yg-contact-link::after { content: "↗"; }
.yg-contact-note { margin-top: 20px; color: rgba(255,255,255,.72); font-size: .82rem; }

.yg-site-footer { padding: 44px 0; background: var(--yg-ink); color: #fff; }
.yg-footer-grid { display: grid; grid-template-columns: 1fr 2fr auto; gap: 40px; align-items: end; }
.yg-footer-name { font-size: 1.1rem; font-weight: 800; }
.yg-business { color: rgba(255,255,255,.58); font-size: .76rem; line-height: 1.8; }
.yg-copyright { color: rgba(255,255,255,.58); font-size: .72rem; text-align: right; }

.yg-page-hero { padding: 180px 0 80px; background: var(--yg-ink); color: #fff; }
.yg-page-hero h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 6rem); letter-spacing: -.055em; }
.yg-content { max-width: 840px; margin: 0 auto; }
.yg-content > * + * { margin-top: 1.4em; }
.yg-content h2, .yg-content h3 { letter-spacing: -.035em; line-height: 1.25; }
.yg-content a { color: var(--yg-blue); text-decoration: underline; text-underline-offset: 3px; }
.yg-single-meta { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 52px; border-top: 1px solid rgba(255,255,255,.28); }
.yg-single-meta div { padding: 22px 20px 0 0; }
.yg-single-meta dt { color: rgba(255,255,255,.56); font-size: .72rem; text-transform: uppercase; }
.yg-single-meta dd { margin: 5px 0 0; font-weight: 700; }
.yg-featured { width: 100%; max-height: 78svh; object-fit: cover; }

.yg-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.yg-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .yg-header-inner { grid-template-columns: 1fr auto; }
  .yg-menu-toggle { display: block; justify-self: end; position: relative; z-index: 2; }
  .yg-nav {
    position: fixed;
    inset: 78px 0 0;
    padding: 44px var(--yg-pad);
    background: var(--yg-ink);
    color: #fff;
    transform: translateX(100%);
    transition: transform .28s ease;
  }
  .nav-open .yg-nav { transform: translateX(0); }
  .yg-nav ul { display: grid; justify-content: stretch; gap: 0; }
  .yg-nav a { display: block; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.2); font-size: 1.35rem; }
  .yg-header-cta { display: none; }
  .nav-open .yg-menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav-open .yg-menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .yg-menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .yg-hero-grid, .yg-intro-grid, .yg-quote-grid, .yg-contact-grid { grid-template-columns: 1fr; }
  .yg-hero-copy { margin-left: 0; }
  .yg-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .yg-stat:nth-child(2) { border-right: 0; }
  .yg-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.25); }
  .yg-intro-note { position: static; }
  .yg-service-item { grid-template-columns: 60px 1fr; }
  .yg-service-item p { grid-column: 2; }
  .yg-process { grid-template-columns: repeat(2, 1fr); }
  .yg-footer-grid { grid-template-columns: 1fr 1fr; }
  .yg-copyright { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 680px) {
  :root { --yg-section: 82px; }
  .yg-site-header { height: 70px; }
  .yg-brand-mark { width: 30px; height: 30px; }
  .yg-nav { top: 70px; }
  .yg-hero { min-height: 780px; }
  .yg-hero-inner { padding-top: 124px; }
  .yg-hero h1 { font-size: clamp(2.55rem, 12.2vw, 4rem); line-height: 1; }
  .yg-hero-grid { gap: 34px; }
  .yg-concept-badge { left: var(--yg-pad); right: auto; max-width: calc(100% - 40px); font-size: .56rem; white-space: normal; }
  .yg-stats-grid { grid-template-columns: 1fr 1fr; }
  .yg-stat { min-height: 132px; padding: 24px 18px; }
  .yg-project-card,
  .yg-project-card:nth-child(3n + 1),
  .yg-project-card:nth-child(3n + 2),
  .yg-project-card:nth-child(3n) { grid-column: 1 / -1; margin-top: 0; }
  .yg-service-item { grid-template-columns: 42px 1fr; gap: 14px; padding: 28px 0; }
  .yg-process { grid-template-columns: 1fr; }
  .yg-process-item { min-height: auto; }
  .yg-process-item::before { margin-bottom: 30px; }
  .yg-single-meta { grid-template-columns: 1fr 1fr; }
  .yg-footer-grid { grid-template-columns: 1fr; }
  .yg-contact h2 { font-size: clamp(3rem, 14vw, 5.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .yg-reveal { opacity: 1; transform: none; }
}
