@font-face {
  font-family: "Pretendard CWL";
  font-weight: 45 920;
  font-display: swap;
  src: url("assets/fonts/PretendardVariable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #16263d;
  --muted: #4f5968;
  --teal: #287375;
  --gold: #be8f40;
  --paper: #f7f5f0;
  --line: #d6dad8;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(22, 38, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard CWL", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.65;
  line-break: keep-all;
  overflow-wrap: normal;
  word-break: keep-all;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 245, 240, 0.9);
  border-bottom: 1px solid rgba(214, 218, 216, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
}

.brand img {
  border-radius: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.site-nav a,
.intro-lnb a {
  text-decoration: none;
}

.site-nav a:hover,
.intro-lnb a:hover {
  color: var(--teal);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.language-switch button {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.hero {
  min-height: min(620px, calc(100vh - 81px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 6vw, 80px) clamp(20px, 5vw, 72px) 42px;
}

.intro-lnb {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 44px);
  padding: 16px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

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

h1 {
  margin-bottom: 8px;
  max-width: 100%;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lab-name {
  margin-bottom: 30px;
  color: var(--teal);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
}

.thesis {
  max-width: 680px;
  margin-bottom: 34px;
  color: #26354a;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.48;
  word-break: keep-all;
}

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

.hero-visual {
  display: grid;
  gap: 18px;
}

.context-art,
.section-diagram {
  display: block;
  width: 100%;
  height: auto;
}

.context-art {
  max-height: 270px;
  object-fit: contain;
  filter: drop-shadow(0 22px 48px rgba(22, 38, 61, 0.12));
}

.mobile-break {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  color: var(--ink);
}

.ladder {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 0;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.ladder::before {
  content: "";
  position: absolute;
  inset: 28px auto 28px 24px;
  width: 6px;
  background: linear-gradient(var(--gold), var(--teal));
}

.ladder-row {
  position: relative;
  padding: 14px 18px 14px 32px;
  border-bottom: 1px solid var(--line);
}

.ladder-row:last-child {
  border-bottom: 0;
}

.ladder-row::before {
  content: "";
  position: absolute;
  top: 21px;
  left: -10px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--teal);
  border: 5px solid var(--white);
}

.ladder-row:last-child::before {
  background: var(--gold);
}

.ladder-row span {
  display: block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.ladder-row strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: keep-all;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 900px;
}

.section h2 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.work > div p,
.problem-strip p {
  max-width: 800px;
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 700;
  word-break: keep-all;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
}

.principle-grid article {
  min-height: 270px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--paper);
}

.principle-grid h3 {
  margin-bottom: 18px;
  color: var(--teal);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.16;
}

.principle-grid p,
.problem-strip p,
.work-list p,
.dikw-grid p,
.evidence-grid p,
.naruon-grid p,
.detail-list dd,
.logo-story p,
.logo-points dd,
.reference-list,
.site-footer p {
  color: var(--muted);
  font-size: 18px;
  word-break: keep-all;
}

.detail-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
}

.detail-list div {
  padding-top: 16px;
  border-top: 1px solid rgba(22, 38, 61, 0.14);
}

.detail-list dt {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.detail-list dd {
  margin: 5px 0 0;
  line-height: 1.58;
}

.problem {
  background: var(--white);
}

.problem-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
}

.problem-strip article {
  min-height: 220px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--white);
}

.problem-strip h3 {
  margin-bottom: 16px;
  color: var(--teal);
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.16;
}

.dikw {
  background: var(--white);
}

.evidence {
  background: var(--paper);
}

.naruon {
  background: var(--paper);
}

.dikw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
}

.section-diagram {
  max-width: 1120px;
  margin-top: 42px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dikw-grid article {
  min-height: 320px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
}

.dikw-grid span {
  display: block;
  margin-bottom: 38px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.dikw-grid h3 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.14;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
}

.naruon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
}

.evidence-grid article {
  min-height: 250px;
  padding: clamp(24px, 3vw, 38px);
  background: var(--paper);
}

.naruon-grid article {
  min-height: 220px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--white);
}

.evidence-grid h3 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.18;
}

.naruon-grid h3 {
  margin-bottom: 16px;
  color: var(--teal);
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.16;
}

.project-grid h3 a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.project-grid h3 a:hover {
  color: var(--ink);
}

.references {
  background: var(--white);
}

.reference-list {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 42px 0 0;
  padding-left: 24px;
  line-height: 1.58;
}

.reference-list li {
  padding-left: 8px;
  overflow-wrap: anywhere;
}

.reference-list a {
  color: var(--teal);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.logo-story {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 104px);
  align-items: center;
  background: var(--white);
}

.logo-mark {
  display: grid;
  place-items: center;
}

.logo-mark img {
  width: min(100%, 360px);
  height: auto;
  box-shadow: var(--shadow);
}

.logo-story h2 {
  margin-bottom: 20px;
}

.logo-story > div:last-child > p {
  max-width: 820px;
  margin-bottom: 34px;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.55;
}

.logo-points {
  display: grid;
  gap: 1px;
  max-width: 860px;
  margin: 0;
  background: var(--line);
}

.logo-points div {
  padding: 24px 0;
  background: var(--white);
}

.logo-points dt {
  color: var(--teal);
  font-size: 18px;
  font-weight: 900;
}

.logo-points dd {
  margin: 4px 0 0;
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(36px, 6vw, 88px);
  background: var(--ink);
  color: var(--white);
}

.work > div p,
.work-list p {
  color: #d6dad8;
}

.work-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(214, 218, 216, 0.28);
}

.work-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(214, 218, 216, 0.28);
}

.work-list span {
  color: var(--gold);
  font-weight: 900;
}

.work-list strong {
  display: block;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}

.work-list p {
  grid-column: 2;
  margin: 8px 0 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px clamp(20px, 5vw, 72px);
  background: var(--white);
}

.site-footer img {
  width: min(460px, 100%);
  height: auto;
}

.site-footer p {
  max-width: 430px;
  margin-bottom: 0;
}

.site-footer a {
  color: var(--teal);
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .logo-story,
  .work {
    grid-template-columns: 1fr;
  }

  .hero {
    display: block;
    min-height: auto;
  }

  .hero-visual {
    margin-top: 36px;
    max-width: 680px;
  }

  .principle-grid,
  .problem-strip,
  .evidence-grid,
  .naruon-grid {
    grid-template-columns: 1fr;
  }

  .dikw-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo-mark {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .brand span {
    font-size: 15px;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 22px;
    font-size: 14px;
  }

  h1 {
    font-size: 34px;
  }

  .thesis,
  .ladder-row strong,
  .dikw-grid h3,
  .section-heading p,
  .work > div p,
  .principle-grid p,
  .problem-strip p,
  .dikw-grid p,
  .evidence-grid p,
  .naruon-grid p,
  .detail-list dd,
  .logo-story p,
  .logo-points dd,
  .reference-list,
  .work-list p {
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .thesis {
    max-width: 100%;
    font-size: 19px;
  }

  .mobile-break {
    display: inline;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-copy,
  .hero-actions,
  .ladder {
    width: 100%;
    max-width: 100%;
  }

  .work-list li {
    grid-template-columns: 42px 1fr;
    column-gap: 14px;
  }

  .dikw-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility enhancements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
