:root {
  --bg: #1a1a1a;
  --bg-deep: #111111;
  --bg-panel: #202020;
  --surface: #252525;
  --surface-raised: #2d2d2d;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --ink: #f4f2ee;
  --ink-muted: #c4c0b8;
  --ink-faint: #8f8b84;
  --ink-quiet: rgba(244, 242, 238, 0.58);
  --border: rgba(255, 255, 255, 0.09);
  --border-mid: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.24);
  --accent: #FFA600;
  --accent-warm: #D98F00;
  --accent-soft: rgba(255, 166, 0, 0.12);
  --accent-line: rgba(255, 166, 0, 0.3);
  --accent-text: #151515;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-card: 8px;
  --radius-pill: 999px;
  --content-width: 1240px;
  --header-offset: 92px;
  --font-body: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-title: "42dot Sans", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 560ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: var(--header-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 166, 0, 0.055) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(180deg, rgba(244, 242, 238, 0.025) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--bg);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(255, 166, 0, 0.08) 0) 0 0 / 240px 100%,
    linear-gradient(180deg, transparent calc(100% - 1px), rgba(255, 255, 255, 0.035) 0) 0 0 / 100% 240px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05));
}

img {
  display: block;
  max-width: 100%;
}

a,
button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
}

input {
  appearance: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(var(--content-width), calc(100vw - 40px));
  margin: 0 auto;
  padding: 18px 0 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: rgba(38, 38, 38, 0.46);
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  color: var(--accent);
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 0.72;
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-label,
.eyebrow,
.search-label,
.meta-chip,
.detail-kicker,
.resource-chip,
.card-open,
.meta-year,
.detail-side-years,
.detail-side-types,
.detail-resource-site,
.detail-resource-url,
.detail-resource-caption,
.career-period,
.hero-year,
.contact-status {
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-lockup strong,
.section-title,
.hero-title,
.featured-lead-title,
.featured-support-title,
.archive-featured-title,
.card-title,
.detail-title,
.detail-resource-title,
.subsection-title {
  font-family: var(--font-body);
  letter-spacing: 0;
}

.brand-lockup strong,
.hero-title {
  font-family: var(--font-title);
}

.brand-lockup strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(12px, 3.6vw, 22px);
  min-width: 0;
  width: auto;
  overflow: visible;
  padding-bottom: 0;
}

.nav-link,
.button,
.chip,
.quick-type,
.load-more,
.detail-link,
.detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.025);
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease;
}

.nav-link {
  width: auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-link:hover,
.button:hover,
.chip:hover,
.quick-type:hover,
.load-more:hover,
.detail-link:hover,
.detail-close:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--ink);
}

.nav-link.is-active,
.chip.active {
  color: var(--accent-text);
  background: var(--accent);
  border-color: var(--accent);
}

.nav-link.is-active {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
}

.nav-link:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
  color: var(--accent);
}

.header-action {
  display: none;
  justify-content: flex-end;
}

.header-meta {
  min-width: 112px;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-align: right;
}

.main-shell,
.view {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 0;
}

.view {
  margin-top: 22px;
}

.home-first-screen {
  width: 100%;
  min-width: 0;
  min-height: calc(100svh - 100px);
  display: grid;
  align-content: center;
  gap: clamp(14px, 2.2svh, 28px);
  padding-block: clamp(8px, 2svh, 24px);
}

.home-first-screen > .section-shell {
  min-width: 0;
}

.home-first-screen > .brand-marquee-section {
  width: 100%;
}

.section-shell {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0;
}

.section-shell + .section-shell {
  border-top: 1px solid var(--border);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].is-visible {
  animation: section-in var(--dur-slow) var(--ease-out) forwards;
}

.hero-section[data-reveal] {
  opacity: 1;
  transform: none;
}

.hero-section[data-reveal].is-visible {
  animation: none;
}

.section-header {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(24px, 4vw, 46px);
  padding-left: clamp(14px, 1.6vw, 22px);
  border-left: 3px solid var(--accent);
}

.section-header--split {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  align-items: end;
}

.section-side-copy {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.section-title {
  max-width: 14ch;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 5.8vw, 5.4rem);
  font-weight: 900;
  line-height: 0.94;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}

.section-copy,
.hero-summary,
.contact-text,
.featured-summary,
.featured-support-summary,
.archive-featured-copy,
.card-summary,
.detail-summary,
.detail-body {
  color: var(--ink-muted);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.8;
  word-break: keep-all;
}
