:root {
  --text: #222;
  --muted: #666;
  --line: #e7e7e7;
  --blue: #2f80ed;
  --page: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Noto Sans KR", sans-serif;
  line-height: 1.68;
  word-break: keep-all;
}

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

.page {
  width: min(calc(100% - 48px), var(--page));
  margin: 0 auto;
}

.site-header {
  border-top: 6px solid var(--blue);
}

.header-inner {
  min-height: 72px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}

.header-links a:hover { color: var(--blue); }

.hero {
  padding: 72px 0 66px;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.15;
  letter-spacing: -.055em;
}

.hero-line {
  display: block;
}

.hero-copy {
  max-width: 860px;
  margin: 36px 0 0;
  font-size: 19px;
  color: #333;
}

.nowrap-desktop {
  white-space: nowrap;
}

.dot { color: var(--blue); }

.resume-section {
  padding: 54px 0 20px;
}

.resume-section > h2 {
  margin: 0 0 50px;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.company-block {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px;
  padding: 0 0 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.company-info h3 {
  margin: 0 0 10px;
  white-space: nowrap;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -.03em;
}

.company-info p {
  margin: 2px 0;
  font-size: 14px;
  color: var(--muted);
}

.experience-list {
  min-width: 0;
}

.experience + .experience {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.experience h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.experience h4 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.experience p {
  margin: 0;
  font-size: 16px;
}

.experience ul {
  margin: 8px 0 0;
  padding-left: 19px;
}

.experience li {
  margin: 5px 0;
}

.experience li::marker {
  color: var(--blue);
}

.compact .experience + .experience {
  margin-top: 38px;
  padding-top: 38px;
}

.skill-lines,
.credential-lines {
  border-top: 1px solid var(--line);
}

.skill-lines > div,
.credential-lines > div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 44px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.skill-lines span,
.credential-lines span {
  color: var(--muted);
}

.final-section {
  padding-bottom: 90px;
}

.brand-appendix .brand-intro {
  margin-top: 12px;
  color: var(--muted);
}

.brand-appendix .brand-list {
  margin-top: 18px;
}

.brand-appendix .brand-list li {
  margin: 10px 0;
}

.credential-lines .credential-item {
  display: block;
  padding: 18px 0;
}

.credential-lines .credential-item strong {
  display: block;
  white-space: nowrap;
}

.credential-lines .credential-item span {
  display: block;
  margin-top: 6px;
  text-align: left;
}

@media (max-width: 900px) {
  .page {
    width: min(calc(100% - 36px), 820px);
  }

  .header-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
  }

  .hero h1 {
    font-size: clamp(40px, 7vw, 56px);
  }

  .hero-copy {
    max-width: 780px;
    font-size: 18px;
  }

  .company-block {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 30px;
  }

  .company-info h3 {
    font-size: 19px;
  }

  .skill-lines > div,
  .credential-lines > div {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 30px;
  }

  .credential-lines .credential-item strong {
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .page {
    width: min(calc(100% - 28px), 620px);
  }

  .header-inner {
    min-height: auto;
    padding: 16px 0;
  }

  .header-links {
    justify-content: flex-start;
    font-size: 13px;
  }

  .hero {
    padding: 54px 0 44px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 42px);
    letter-spacing: -.045em;
  }

  .hero-copy {
    font-size: 17px;
  }

  .nowrap-desktop {
    white-space: normal;
  }

  .resume-section > h2 {
    margin-bottom: 36px;
    font-size: 32px;
  }

  .company-block,
  .skill-lines > div,
  .credential-lines > div {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .company-block {
    padding-bottom: 42px;
    margin-bottom: 42px;
  }

  .company-info h3 {
    white-space: normal;
  }

  .experience h3 {
    font-size: 24px;
  }

  .hero-copy,
  .experience p,
  .experience li {
    word-break: keep-all;
    overflow-wrap: break-word;
  }
}




/* v8 final desktop layout */
.page {
  width: min(calc(100% - 64px), var(--page));
}

.hero h1 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(44px, 4.3vw, 62px);
  line-height: 1.16;
  letter-spacing: -.055em;
}

.hero-fixed-line {
  display: block;
}

.hero-core-line {
  white-space: nowrap;
}

.hero-copy {
  max-width: 1120px;
  margin-top: 34px;
  font-size: 19px;
}

.hero-copy-line {
  display: block;
  white-space: nowrap;
}

.company-block {
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px;
}

.keep-together {
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .page {
    width: min(calc(100% - 48px), 940px);
  }

  .hero h1 {
    font-size: clamp(40px, 5vw, 54px);
  }

  .hero-core-line,
  .hero-copy-line,
  .keep-together {
    white-space: normal;
  }

  .company-block {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 680px) {
  .page {
    width: min(calc(100% - 28px), 620px);
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 42px);
  }

  .hero-fixed-line,
  .hero-core-line,
  .hero-copy-line,
  .keep-together {
    white-space: normal;
  }

  .company-block {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
