/* Versioned for the UNGUM route, candidate class, and tailored trust hook. */
:root {
  color-scheme: dark;
  --lab-ink: #0b0e12;
  --lab-panel: #11161d;
  --lab-panel-hi: #171d25;
  --lab-paper: #f1f3f5;
  --lab-muted: #8c949f;
  --lab-dim: #59616c;
  --lab-blue: #3076ea;
  --lab-line: rgba(241, 243, 245, 0.12);
  --lab-max: 1320px;
  --sans: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Helvetica, Arial, sans-serif;
  --utility: "SFMono-Regular", "Roboto Mono", "IBM Plex Mono", Consolas,
    monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--lab-ink);
  color: var(--lab-paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.lab-shell {
  width: min(calc(100% - 40px), var(--lab-max));
  margin: 0 auto;
}

.lab-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--lab-line);
}

.lab-nav__home,
.lab-nav__section {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--lab-paper);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.lab-nav__home::before {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.lab-nav__section {
  color: var(--lab-muted);
}

.lab-index {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(48, 118, 234, 0.15) 50%, transparent calc(50% + 1px)),
    radial-gradient(circle at 75% 8%, rgba(48, 118, 234, 0.14), transparent 31%),
    var(--lab-ink);
}

.lab-index::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(241, 243, 245, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 243, 245, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.lab-index .lab-shell {
  position: relative;
  z-index: 1;
}

.lab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.55fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: end;
  min-height: 510px;
  padding: 104px 0 78px;
}

.lab-kicker,
.candidate__index,
.candidate__status,
.lab-note__label {
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lab-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--lab-blue);
}

.lab-kicker::before {
  width: 40px;
  height: 1px;
  background: currentColor;
  content: "";
}

.lab-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(48px, 8.8vw, 126px);
  font-weight: 480;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.lab-hero h1 span {
  display: block;
  color: var(--lab-muted);
  font-weight: 300;
}

.lab-hero__aside {
  padding: 0 0 8px;
}

.lab-hero__aside p {
  margin: 0;
  color: #bcc2ca;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.7;
  word-break: keep-all;
}

.lab-hero__aside small {
  display: block;
  margin-top: 26px;
  color: var(--lab-dim);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-transform: uppercase;
}

.candidate-rack {
  border-top: 1px solid var(--lab-line);
}

.candidate {
  --candidate-accent: var(--lab-blue);
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(240px, 0.75fr) minmax(260px, 1.25fr) 130px;
  gap: 28px;
  align-items: center;
  min-height: 188px;
  padding: 30px 0;
  border-bottom: 1px solid var(--lab-line);
  text-decoration: none;
  transition:
    background-color 280ms ease,
    padding 280ms ease;
}

.candidate::before {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 50%;
  width: 0;
  background: color-mix(in srgb, var(--candidate-accent) 8%, transparent);
  content: "";
  transition:
    left 360ms cubic-bezier(0.2, 0.72, 0.2, 1),
    width 360ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.candidate:hover::before,
.candidate:focus-visible::before {
  left: -20px;
  width: calc(100% + 40px);
}

.candidate > * {
  position: relative;
  z-index: 1;
}

.candidate__index {
  align-self: start;
  padding-top: 7px;
  color: var(--candidate-accent);
}

.candidate__name {
  margin: 0;
  color: var(--lab-paper);
  font-size: clamp(31px, 4vw, 54px);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1;
}

.candidate__latin {
  display: block;
  margin-top: 12px;
  color: var(--lab-muted);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.candidate__thesis {
  max-width: 620px;
  margin: 0;
  color: #a9b0ba;
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

.candidate__status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--lab-muted);
  text-align: right;
}

.candidate__status::after {
  width: 9px;
  height: 9px;
  border: 1px solid var(--candidate-accent);
  content: "";
  transform: rotate(45deg);
  transition: background 180ms ease;
}

.candidate:hover .candidate__status::after,
.candidate:focus-visible .candidate__status::after {
  background: var(--candidate-accent);
}

.candidate--ungum {
  --candidate-accent: #9caf93;
}

.candidate--iumgyeol {
  --candidate-accent: #d2bd78;
}

.candidate--yeomim {
  --candidate-accent: #d66b38;
}

.candidate--matseom {
  --candidate-accent: #d17b5d;
}

.candidate--meonjeobom {
  --candidate-accent: #60a9bc;
}

.candidate--baseline {
  --candidate-accent: #3076ea;
}

.candidate--inactive {
  cursor: default;
}

.candidate--inactive:hover::before,
.candidate--inactive:focus-visible::before {
  width: 0;
}

.lab-note {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 42px 0 84px;
}

.lab-note__label {
  color: var(--lab-blue);
}

.lab-note p {
  max-width: 680px;
  margin: 0;
  color: var(--lab-dim);
  font-size: 13px;
  line-height: 1.75;
}

/* UNGUM brand prototype */
.ungum-page {
  --ug-iron: #131711;
  --ug-iron-soft: #1b2119;
  --ug-moss: #82917b;
  --ug-celadon: #aebaa5;
  --ug-bone: #e8e3d6;
  --ug-bone-muted: #b9b5aa;
  --ug-copper: #b8784f;
  --ug-line: rgba(232, 227, 214, 0.16);
  color-scheme: dark;
  overflow-x: hidden;
  background: var(--ug-iron);
  color: var(--ug-bone);
}

.ungum-page .lab-shell {
  width: min(calc(100% - 48px), 1380px);
}

.ungum-page .lab-nav {
  border-color: var(--ug-line);
}

.ungum-page .lab-nav__section {
  color: var(--ug-moss);
}

.ug-hero {
  position: relative;
  min-height: max(760px, 100svh);
  overflow: hidden;
  border-bottom: 1px solid var(--ug-line);
  background:
    radial-gradient(circle at 76% 28%, rgba(130, 145, 123, 0.16), transparent 29%),
    linear-gradient(115deg, #10130f 0%, var(--ug-iron) 52%, #171d16 100%);
}

.ug-hero::before {
  position: absolute;
  top: 76px;
  bottom: 0;
  left: 64%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--ug-copper) 24%, var(--ug-copper) 76%, transparent);
  box-shadow: 0 0 36px rgba(184, 120, 79, 0.24);
  content: "";
}

.ug-hero::after {
  position: absolute;
  inset: 76px 0 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 227, 214, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 227, 214, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(100deg, #000, transparent 72%);
}

.ug-hero__body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(56px, 8vw, 130px);
  align-items: center;
  min-height: calc(max(760px, 100svh) - 76px);
  padding: 84px 0 100px;
}

.ug-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  color: var(--ug-moss);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ug-eyebrow::before {
  width: 38px;
  height: 1px;
  background: currentColor;
  content: "";
}

.ug-wordmark {
  position: relative;
  margin: 0;
}

.ug-wordmark__kr {
  display: block;
  font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif;
  font-size: clamp(94px, 18vw, 250px);
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 0.8;
  text-shadow: 18px 18px 0 rgba(130, 145, 123, 0.09);
}

.ug-wordmark__latin {
  display: block;
  margin: 32px 0 0 8px;
  color: var(--ug-celadon);
  font-family: var(--utility);
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.48em;
}

.ug-thesis {
  max-width: 650px;
  margin: 58px 0 0;
  font-family: "Iowan Old Style", "Noto Serif KR", "AppleMyungjo", Georgia, serif;
  font-size: clamp(25px, 3.3vw, 48px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.3;
  word-break: keep-all;
}

.ug-thesis em {
  color: var(--ug-celadon);
  font-style: normal;
}

.ug-hook-en {
  margin: 24px 0 0 4px;
  color: var(--ug-bone);
  font-family: var(--utility);
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ug-mission {
  margin: 24px 0 0;
  color: var(--ug-moss);
  font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: 0.01em;
  line-height: 1.7;
  word-break: keep-all;
}

.ug-hero__mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}

.ug-hero__mark::before,
.ug-hero__mark::after {
  position: absolute;
  width: min(33vw, 420px);
  height: min(33vw, 420px);
  border: 1px solid var(--ug-line);
  content: "";
  transform: rotate(45deg);
}

.ug-hero__mark::after {
  width: min(24vw, 300px);
  height: min(24vw, 300px);
  border-color: rgba(174, 186, 165, 0.26);
}

.ug-mark {
  position: relative;
  z-index: 2;
  width: min(23vw, 280px);
  color: var(--ug-bone);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.3));
}

.ug-hero__caption {
  position: absolute;
  right: 0;
  bottom: 12px;
  max-width: 190px;
  margin: 0;
  color: var(--ug-moss);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.65;
  text-transform: uppercase;
}

.ug-section {
  position: relative;
  border-bottom: 1px solid var(--ug-line);
}

.ug-section__inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(48px, 9vw, 150px);
  padding: clamp(92px, 12vw, 170px) 0;
}

.ug-section__label {
  margin: 0;
  color: var(--ug-moss);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.19em;
  line-height: 1.7;
  text-transform: uppercase;
}

.ug-section__label strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ug-copper);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.ug-section h2 {
  max-width: 950px;
  margin: 0 0 52px;
  font-family: "Iowan Old Style", "Noto Serif KR", "AppleMyungjo", Georgia, serif;
  font-size: clamp(39px, 6vw, 84px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.08;
  word-break: keep-all;
}

.ug-section h2 span {
  color: var(--ug-moss);
}

.ug-lede {
  max-width: 820px;
  margin: 0;
  color: var(--ug-bone-muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.8;
  word-break: keep-all;
}

.ug-origin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 76px;
  background: var(--ug-line);
  border: 1px solid var(--ug-line);
}

.ug-origin-card {
  min-height: 300px;
  padding: clamp(30px, 4vw, 56px);
  background: var(--ug-iron);
}

.ug-origin-card--promise {
  background: var(--ug-iron-soft);
}

.ug-origin-card__tag {
  display: block;
  margin-bottom: 60px;
  color: var(--ug-copper);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ug-origin-card h3 {
  margin: 0 0 22px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 520;
  letter-spacing: -0.035em;
}

.ug-origin-card p {
  max-width: 500px;
  margin: 0;
  color: var(--ug-bone-muted);
  font-size: 15px;
  line-height: 1.8;
  word-break: keep-all;
}

.ug-bandwidth {
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(184, 120, 79, 0.35) 50%, transparent 50.05%),
    var(--ug-bone);
  color: var(--ug-iron);
}

.ug-bandwidth .ug-section__label {
  color: #66705f;
}

.ug-bandwidth .ug-section h2,
.ug-bandwidth h2 {
  color: var(--ug-iron);
}

.ug-bandwidth h2 span {
  color: #6f8068;
}

.ug-chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 80px;
  border-top: 1px solid rgba(19, 23, 17, 0.24);
  border-bottom: 1px solid rgba(19, 23, 17, 0.24);
}

.ug-chain__item {
  position: relative;
  min-height: 250px;
  padding: 32px 28px 34px 0;
  border-right: 1px solid rgba(19, 23, 17, 0.18);
}

.ug-chain__item:not(:first-child) {
  padding-left: 28px;
}

.ug-chain__item:last-child {
  border-right: 0;
}

.ug-chain__item span {
  color: #6f8068;
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.ug-chain__item h3 {
  margin: 80px 0 12px;
  font-size: clamp(27px, 3.5vw, 46px);
  font-weight: 540;
  letter-spacing: -0.05em;
}

.ug-chain__item p {
  margin: 0;
  color: #566052;
  font-size: 13px;
  line-height: 1.6;
}

.ug-system-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  background: var(--ug-line);
  border: 1px solid var(--ug-line);
}

.ug-system-panel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 70px);
  background: var(--ug-iron-soft);
}

.ug-system-panel--mark {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(130, 145, 123, 0.11), transparent 50%),
    var(--ug-iron);
}

.ug-system-panel--mark .ug-mark {
  width: min(40vw, 310px);
}

.ug-system-panel__meta {
  position: absolute;
  top: 28px;
  left: 28px;
  color: var(--ug-moss);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ug-palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 190px;
  margin-top: 50px;
  border: 1px solid var(--ug-line);
}

.ug-swatch {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  padding: 14px;
  color: var(--ug-bone);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ug-swatch:nth-child(1) { background: var(--ug-iron); }
.ug-swatch:nth-child(2) { background: var(--ug-iron-soft); }
.ug-swatch:nth-child(3) { background: var(--ug-moss); color: var(--ug-iron); }
.ug-swatch:nth-child(4) { background: var(--ug-bone); color: var(--ug-iron); }
.ug-swatch:nth-child(5) { background: var(--ug-copper); color: var(--ug-iron); }

.ug-type-sample {
  margin-top: 64px;
}

.ug-type-sample__kr {
  display: block;
  font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif;
  font-size: clamp(54px, 9vw, 112px);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 0.95;
}

.ug-type-sample__en {
  display: block;
  margin-top: 28px;
  color: var(--ug-celadon);
  font-family: var(--utility);
  font-size: 13px;
  letter-spacing: 0.32em;
}

.ug-variations-section {
  background: #0d100c;
}

.ug-variations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 76px;
}

.ug-variation {
  --dir-bg: #131711;
  --dir-panel: #1b2119;
  --dir-ink: #e8e3d6;
  --dir-muted: #82917b;
  --dir-accent: #b8784f;
  --dir-line: rgba(232, 227, 214, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 760px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--dir-line);
  background: var(--dir-bg);
  color: var(--dir-ink);
}

.ug-variation::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 62%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--dir-accent) 28%, var(--dir-accent) 72%, transparent);
  content: "";
  opacity: 0.75;
}

.ug-variation--precision {
  --dir-bg: #0a0e11;
  --dir-panel: #121a20;
  --dir-ink: #e4ebec;
  --dir-muted: #7e989f;
  --dir-accent: #84cbc4;
  --dir-line: rgba(228, 235, 236, 0.14);
}

.ug-variation--resolve {
  --dir-bg: #171614;
  --dir-panel: #24211e;
  --dir-ink: #e7e0d3;
  --dir-muted: #9a8c7e;
  --dir-accent: #a94f3e;
  --dir-line: rgba(231, 224, 211, 0.14);
}

.ug-variation__header,
.ug-variation__footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--dir-muted);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ug-variation__lockup {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 72px;
}

.ug-variation__mark {
  width: 70px;
  flex: 0 0 auto;
  color: var(--dir-ink);
}

.ug-variation__core {
  fill: var(--dir-accent);
}

.ug-variation__name {
  margin: 0;
  font-family: "Noto Serif KR", "AppleMyungjo", "Batang", serif;
  font-size: clamp(40px, 4.2vw, 62px);
  font-weight: 700;
  letter-spacing: -0.11em;
  line-height: 0.85;
}

.ug-variation__latin {
  display: block;
  margin-top: 15px;
  color: var(--dir-muted);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.25em;
}

.ug-variation--precision .ug-variation__name {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.085em;
}

.ug-variation--precision .ug-variation__latin {
  letter-spacing: 0.38em;
}

.ug-variation--resolve .ug-variation__name {
  font-family: var(--sans);
  font-weight: 760;
  letter-spacing: -0.08em;
}

.ug-variation__claim {
  position: relative;
  z-index: 1;
  min-height: 100px;
  margin: 54px 0 30px;
  color: var(--dir-ink);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.48;
  word-break: keep-all;
}

.ug-variation__field {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--dir-line);
  background:
    linear-gradient(var(--dir-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dir-line) 1px, transparent 1px),
    var(--dir-panel);
  background-size: 38px 38px;
}

.ug-variation__field::before,
.ug-variation__field::after {
  position: absolute;
  background: var(--dir-muted);
  content: "";
  opacity: 0.45;
}

.ug-variation__field::before {
  top: 50%;
  left: 18%;
  width: 64%;
  height: 1px;
}

.ug-variation__field::after {
  top: 18%;
  left: 50%;
  width: 1px;
  height: 64%;
}

.ug-variation__signal {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  background: var(--dir-accent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--dir-accent) 55%, transparent);
  transform: rotate(45deg);
}

.ug-variation__field small {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--dir-muted);
  font-family: var(--utility);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ug-variation--entrusted .ug-variation__field {
  clip-path: polygon(0 0, 100% 0, 100% 86%, 92% 100%, 0 100%);
}

.ug-variation--precision .ug-variation__field {
  background:
    repeating-linear-gradient(90deg, transparent 0 31px, var(--dir-line) 31px 32px),
    linear-gradient(165deg, transparent 48%, color-mix(in srgb, var(--dir-accent) 16%, transparent) 49%, transparent 51%),
    var(--dir-panel);
}

.ug-variation--precision .ug-variation__signal {
  width: 19px;
  height: 4px;
  transform: none;
}

.ug-variation--resolve .ug-variation__field {
  background:
    linear-gradient(135deg, transparent 49.7%, var(--dir-line) 50%, transparent 50.3%),
    linear-gradient(45deg, transparent 49.7%, var(--dir-line) 50%, transparent 50.3%),
    var(--dir-panel);
}

.ug-variation--resolve .ug-variation__field::before {
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--dir-accent);
  opacity: 0.8;
}

.ug-variation--resolve .ug-variation__signal {
  width: 18px;
  height: 18px;
  outline: 1px solid var(--dir-accent);
  outline-offset: 9px;
}

.ug-variation__palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 72px;
  margin-top: 18px;
  border: 1px solid var(--dir-line);
}

.ug-variation__palette span {
  min-width: 0;
  background: var(--swatch);
}

.ug-variation__footer {
  align-items: end;
  margin-top: auto;
  padding-top: 30px;
}

.ug-variation__footer strong {
  color: var(--dir-ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.ug-variation__footer span {
  text-align: right;
}

.ug-variations-note {
  max-width: 830px;
  margin: 38px 0 0;
  color: var(--ug-moss);
  font-size: 13px;
  line-height: 1.75;
  word-break: keep-all;
}

.ug-roman {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
}

.ug-roman__display {
  min-width: 0;
}

.ug-roman__word {
  display: block;
  overflow: hidden;
  color: var(--ug-bone);
  font-family: var(--utility);
  font-size: clamp(50px, 9vw, 126px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-overflow: ellipsis;
}

.ug-roman__pronunciation {
  display: block;
  margin-top: 24px;
  color: var(--ug-moss);
  font-family: var(--utility);
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.ug-roman__controls {
  display: grid;
  gap: 10px;
}

.ug-roman__button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--ug-line);
  background: transparent;
  color: var(--ug-bone-muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.ug-roman__button span:first-child {
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.ug-roman__button span:last-child {
  color: var(--ug-moss);
  font-size: 11px;
}

.ug-roman__button:hover,
.ug-roman__button[aria-pressed="true"] {
  border-color: var(--ug-moss);
  background: rgba(130, 145, 123, 0.09);
  color: var(--ug-bone);
}

.ug-roman__note {
  max-width: 690px;
  margin: 50px 0 0;
  color: var(--ug-bone-muted);
  font-size: 14px;
  line-height: 1.75;
}

.ug-mockups {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 720px;
}

.ug-mockup {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid var(--ug-line);
  background: var(--ug-iron-soft);
}

.ug-mockup--interface {
  grid-row: 1 / span 2;
  padding: clamp(28px, 4vw, 54px);
  background:
    radial-gradient(circle at 60% 38%, rgba(130, 145, 123, 0.17), transparent 32%),
    #0d110c;
}

.ug-mockup__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ug-moss);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ug-mockup__reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(30vw, 310px);
  height: min(30vw, 310px);
  border: 1px solid rgba(174, 186, 165, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ug-mockup__reticle::before,
.ug-mockup__reticle::after {
  position: absolute;
  background: rgba(174, 186, 165, 0.28);
  content: "";
}

.ug-mockup__reticle::before {
  top: 50%;
  left: -22%;
  width: 144%;
  height: 1px;
}

.ug-mockup__reticle::after {
  top: -22%;
  left: 50%;
  width: 1px;
  height: 144%;
}

.ug-mockup__reticle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--ug-copper);
  box-shadow: 0 0 28px var(--ug-copper);
  transform: translate(-50%, -50%) rotate(45deg);
}

.ug-mockup__legend {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  color: var(--ug-moss);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ug-mockup--plate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 45%),
    #272c26;
}

.ug-mockup--plate::after {
  position: absolute;
  right: -20%;
  bottom: -65%;
  width: 95%;
  height: 120%;
  border: 1px solid rgba(232, 227, 214, 0.12);
  border-radius: 50%;
  content: "";
}

.ug-mini-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ug-mini-lockup .ug-mark {
  width: 34px;
}

.ug-mini-lockup strong {
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.ug-plate-code {
  position: relative;
  z-index: 1;
  font-family: var(--utility);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ug-plate-code small {
  display: block;
  margin-top: 12px;
  color: var(--ug-moss);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.ug-mockup--credential {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  align-items: end;
  padding: 34px;
  background: var(--ug-bone);
  color: var(--ug-iron);
}

.ug-credential__mark {
  display: grid;
  place-items: center;
  width: 110px;
  height: 150px;
  background: var(--ug-iron);
}

.ug-credential__mark .ug-mark {
  width: 62px;
}

.ug-credential__copy span {
  display: block;
  color: #697363;
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ug-credential__copy strong {
  display: block;
  margin: 12px 0 26px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.ug-credential__copy p {
  margin: 0;
  color: #697363;
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.ug-footer {
  padding: 80px 0 50px;
  background: #0b0e0a;
}

.ug-footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.ug-footer h2 {
  max-width: 900px;
  margin: 0;
  font-family: "Iowan Old Style", "Noto Serif KR", "AppleMyungjo", Georgia, serif;
  font-size: clamp(38px, 6.5vw, 88px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.ug-footer__back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  color: var(--ug-celadon);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.ug-footer__back::after {
  width: 38px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: width 180ms ease;
}

.ug-footer__back:hover::after {
  width: 58px;
}

.ug-footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 120px;
  padding-top: 24px;
  border-top: 1px solid var(--ug-line);
  color: var(--ug-moss);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .lab-hero,
  .ug-hero__body,
  .ug-roman {
    grid-template-columns: 1fr;
  }

  .lab-hero {
    min-height: auto;
    padding-top: 90px;
  }

  .candidate {
    grid-template-columns: 60px minmax(180px, 0.75fr) minmax(220px, 1.25fr);
  }

  .candidate__status {
    grid-column: 2 / -1;
    justify-content: flex-start;
    text-align: left;
  }

  .ug-hero::before {
    left: 74%;
  }

  .ug-hero__body {
    padding-top: 90px;
  }

  .ug-hero__mark {
    min-height: 400px;
  }

  .ug-hero__mark::before {
    width: 360px;
    height: 360px;
  }

  .ug-hero__mark::after {
    width: 260px;
    height: 260px;
  }

  .ug-mark {
    width: 220px;
  }

  .ug-section__inner {
    grid-template-columns: 150px 1fr;
  }

  .ug-system-grid {
    grid-template-columns: 1fr;
  }

  .ug-variations-grid {
    grid-template-columns: 1fr;
  }

  .ug-variation {
    min-height: 650px;
  }

  .ug-variation__name {
    font-size: 58px;
  }

  .ug-mockups {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .ug-mockup--interface {
    grid-row: auto;
    min-height: 560px;
  }
}

@media (max-width: 720px) {
  .lab-shell,
  .ungum-page .lab-shell {
    width: min(calc(100% - 30px), var(--lab-max));
  }

  .lab-nav {
    min-height: 66px;
  }

  .lab-nav__section {
    max-width: 150px;
    justify-content: flex-end;
    text-align: right;
  }

  .lab-hero {
    gap: 42px;
    padding: 72px 0 58px;
  }

  .lab-hero h1 {
    max-width: 8ch;
  }

  .candidate {
    grid-template-columns: 38px 1fr;
    gap: 18px;
    min-height: 0;
    padding: 30px 0;
  }

  .candidate__name,
  .candidate__thesis,
  .candidate__status {
    grid-column: 2;
  }

  .candidate__thesis {
    margin-top: 2px;
  }

  .lab-note {
    grid-template-columns: 38px 1fr;
    gap: 18px;
  }

  .ug-hero {
    min-height: auto;
  }

  .ug-hero::before {
    left: 82%;
  }

  .ug-hero__body {
    min-height: auto;
    gap: 36px;
    padding: 70px 0 76px;
  }

  .ug-wordmark__kr {
    font-size: clamp(92px, 31vw, 142px);
  }

  .ug-wordmark__latin {
    margin-top: 24px;
    letter-spacing: 0.35em;
  }

  .ug-thesis {
    margin-top: 42px;
  }

  .ug-hero__mark {
    min-height: 330px;
  }

  .ug-hero__mark::before {
    width: 270px;
    height: 270px;
  }

  .ug-hero__mark::after {
    width: 200px;
    height: 200px;
  }

  .ug-mark {
    width: 170px;
  }

  .ug-section__inner {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 88px 0;
  }

  .ug-origin-grid,
  .ug-system-grid {
    grid-template-columns: 1fr;
  }

  .ug-variations-grid {
    gap: 16px;
    margin-top: 54px;
  }

  .ug-variation {
    min-height: 610px;
    padding: 24px;
  }

  .ug-variation__lockup {
    margin-top: 48px;
  }

  .ug-variation__mark {
    width: 58px;
  }

  .ug-variation__name {
    font-size: 48px;
  }

  .ug-variation__claim {
    min-height: 0;
    margin: 42px 0 26px;
  }

  .ug-variation__field {
    min-height: 190px;
  }

  .ug-origin-card {
    min-height: 270px;
  }

  .ug-chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ug-chain__item {
    min-height: 220px;
    border-bottom: 1px solid rgba(19, 23, 17, 0.18);
  }

  .ug-chain__item:nth-child(2) {
    border-right: 0;
  }

  .ug-chain__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .ug-chain__item:nth-child(3) {
    padding-left: 0;
  }

  .ug-palette {
    grid-template-columns: 1fr;
    height: auto;
  }

  .ug-swatch {
    min-height: 76px;
  }

  .ug-roman__word {
    font-size: clamp(44px, 16vw, 76px);
  }

  .ug-mockup--interface {
    min-height: 440px;
  }

  .ug-mockup__reticle {
    width: 240px;
    height: 240px;
  }

  .ug-mockup--credential {
    grid-template-columns: 86px 1fr;
  }

  .ug-credential__mark {
    width: 86px;
    height: 126px;
  }

  .ug-footer__top {
    grid-template-columns: 1fr;
  }

  .ug-footer__bottom {
    gap: 20px;
    flex-direction: column;
    margin-top: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}
