:root {
  --ink: #f6f5f8;
  --muted: #b4b0bc;
  --line: #2b2830;
  --paper: #0d0d0d;
  --panel: #141215;
  --accent: #b58aff;
  --mint: #a5e9d2;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 32px; }
.anchor-alias { display: block; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; top: -80px; left: 20px; padding: 16px; background: white; color: black; z-index: 10; }
.skip:focus { top: 16px; }
.header { display: flex; align-items: center; min-height: 82px; padding-inline: 40px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 1.2rem; letter-spacing: -.035em; }
.wordmark-sub { font: .75rem var(--mono); letter-spacing: .04em; color: #8b8595; padding-left: 12px; border-left: 1px solid #45404a; margin-left: 10px; }

/* One introduction and one table of contents. */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; padding-block: 100px; align-items: center; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; width: min(800px, 100%); height: 580px; top: 0; left: -50px; background: radial-gradient(ellipse at 0 0, #30005670, transparent 66%); z-index: -1; pointer-events: none; }
.eyebrow { font: .85rem/1.8 var(--mono); letter-spacing: .015em; color: var(--muted); margin: 0 0 30px; }
.hero h1 { font-size: clamp(2.7rem, 4.6vw, 4.6rem); letter-spacing: -.057em; line-height: 1.22; margin: 0; font-weight: 350; word-break: keep-all; }
.gradient-text { background: linear-gradient(100deg, #ac6eff 4%, #be9eea 48%, #a7f4d6 97%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-intro { font-size: 1.25rem; color: #d3d0d7; line-height: 1.7; margin: 34px 0 22px; letter-spacing: -.025em; word-break: keep-all; }
.skills { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #9f98aa; font: .8rem/1.5 var(--mono); }
.hero-index { position: relative; display: grid; gap: 0; padding: 28px; background-image: linear-gradient(#26202f66 1px, transparent 1px), linear-gradient(90deg, #26202f66 1px, transparent 1px); background-size: 78px 78px; border: 1px solid #302737; min-width: 0; }
.hero-index::before { content: ""; position: absolute; right: -1px; top: -1px; width: 64px; height: 7px; background: linear-gradient(90deg, #ad77ff, #8b05ff); }
.index-top { display: flex; justify-content: space-between; gap: 12px; color: #a09aa9; font: .75rem/1.6 var(--mono); letter-spacing: .025em; padding-bottom: 22px; }
.hero-index a { display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px; align-items: center; gap: 16px; padding: 23px 8px; border-top: 1px solid #44384e; background: #0d0d0ddb; }
.hero-index a:hover { background: #17121f; }
.index-n, .index-arrow { font: .8rem var(--mono); color: var(--accent); }
.hero-index strong { display: block; font-size: 1.4rem; line-height: 1.5; font-weight: 400; letter-spacing: -.035em; }
.hero-index small { display: block; font-size: .8rem; color: #ada6b7; line-height: 1.7; margin-top: 6px; word-break: keep-all; }

/* Career is the single home for project and shared technical work. */
.section-block { border-top: 1px solid var(--line); padding-bottom: 76px; }
.divider { display: flex; justify-content: space-between; gap: 16px; font: .75rem/1.7 var(--mono); color: #9a8ca9; letter-spacing: .06em; padding: 42px 0 26px; }
.divider a { letter-spacing: 0; }
.divider a:hover { color: var(--accent); }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { font-size: 3rem; letter-spacing: -.045em; font-weight: 350; margin: 0; line-height: 1.3; }
.section-heading p { font-size: 1rem; color: var(--muted); line-height: 1.8; margin: 16px 0 0; word-break: keep-all; }
.section-block h3 { font-weight: 400; letter-spacing: -.025em; font-size: 1.35rem; line-height: 1.5; margin: 0 0 24px; word-break: keep-all; }
.reading-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 26px; }
.reading-hint { color: #968c9f; font-size: .85rem; line-height: 1.8; margin: 0; word-break: keep-all; }
.expand-controls { display: flex; gap: 8px; flex-shrink: 0; }
.expand-controls button { font-size: .8rem; border: 1px solid #51485d; padding: 9px 13px; background: transparent; min-height: 40px; }
.expand-controls button:hover { border-color: var(--accent); }
summary { cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
.company { border-top: 1px solid var(--line); }
.company:last-child { border-bottom: 1px solid var(--line); }
.company > summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 28px; padding: 30px 16px 30px 0; align-items: start; }
.company > summary:hover, .project > summary:hover, .shared-case > summary:hover { background: #17131c; }
.case-number { font: .8rem var(--mono); color: #d4b3f7; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; margin-top: 3px; border: 1px solid #473451; }
.company-main { display: block; min-width: 0; }
.company-period, .company-role { display: block; color: var(--muted); font-size: .85rem; line-height: 1.8; }
.company-period { font: .8rem/1.8 var(--mono); }
.company-name { display: block; margin: 7px 0 9px; font-size: 2rem; font-weight: 350; letter-spacing: -.04em; word-break: keep-all; }
.company-role span { color: #8f859c; margin-left: 8px; }
.disclosure { display: block; width: 20px; height: 20px; position: relative; align-self: center; }
.disclosure::before, .disclosure::after { content: ""; position: absolute; background: #b6a4ca; }
.disclosure::before { width: 16px; height: 1px; left: 2px; top: 9px; }
.disclosure::after { width: 1px; height: 16px; left: 9px; top: 2px; }
details[open] > summary > .disclosure::after { display: none; }
.company-body { margin: 0 0 36px 72px; border: 1px solid var(--line); }
.company-notes { padding: 24px 30px; background: radial-gradient(ellipse at 0 100%, #210d3760, transparent 90%); border-bottom: 1px solid var(--line); }
.company-notes p { font-size: .95rem; line-height: 1.85; color: var(--muted); margin: 0 0 10px; word-break: keep-all; }
.company-notes p:last-child { margin-bottom: 0; }
.company-notes .related-links { font-size: .82rem; color: #92869e; }
.group-label { padding: 20px 30px; margin: 0; color: #ba9bd5; background: #141017; font: .8rem/1.7 var(--mono); border-bottom: 1px solid var(--line); }
.company-common { border-bottom: 1px solid var(--line); }
.project, .shared-case { border-top: 1px solid var(--line); }
.company-body > .project:first-child, .company-notes + .project, .group-label + .project, .group-label + .shared-case { border-top: 0; }
.project > summary, .shared-case > summary, .project-summary { padding: 26px 65px 26px 30px; }
.project > summary > .disclosure, .shared-case > summary > .disclosure { position: absolute; right: 27px; top: 50%; transform: translateY(-50%); }
.project-meta { display: block; font: .75rem/1.8 var(--mono); color: #968ba3; word-break: keep-all; }
.project-name { display: block; font-weight: 400; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1.5; margin: 9px 0; word-break: keep-all; }
.project-desc { display: block; font-size: .95rem; color: var(--muted); line-height: 1.8; max-width: 900px; word-break: keep-all; }
.shared-case .project-name { font-size: 1.2rem; margin: 0 0 6px; }
.shared-case .project-desc { font-size: .85rem; color: #9e93aa; }
.project-summary { padding-right: 30px; }
.project-body { padding: 0 30px 26px; background: #101012; }
.fact-section { display: grid; grid-template-columns: minmax(160px, .65fr) minmax(0, 1.9fr); gap: 28px; border-top: 1px solid var(--line); padding: 26px 0; position: relative; }
.fact-section:last-child { padding-bottom: 0; }
.fact-section > .anchor-alias { position: absolute; top: 0; left: 0; }
.fact-section h5 { font-size: .95rem; line-height: 1.8; font-weight: 400; letter-spacing: -.015em; color: #d0b3ef; margin: 0; word-break: keep-all; }
.fact-section p { font-size: 1rem; color: #bcb5c6; line-height: 1.95; word-break: keep-all; margin: 0 0 16px; }
.fact-section p:last-child { margin-bottom: 0; }
.framework-projects { border-top: 1px solid var(--line); padding-top: 24px; }
.framework-projects > p { font: .8rem/1.7 var(--mono); color: #a99ab6; margin: 0 0 16px; }
.framework-projects > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.framework-projects a { display: block; border: 1px solid #3d3347; padding: 12px; font-size: .85rem; line-height: 1.7; word-break: keep-all; }
.framework-projects a:hover { border-color: var(--accent); color: var(--accent); }
.framework-projects small { display: block; margin-top: 6px; font-size: .72rem; color: #9e8aad; }

/* Skills inventory and background each have one dedicated section. */
.stack-grid, .education-grid, .profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stack-grid > article, .education-grid > article, .profile-grid > article { padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.subtle { font-size: .8rem; line-height: 1.7; color: #948a9f; margin: -13px 0 24px; }
.language-list { padding: 0; margin: 0; list-style: none; counter-reset: language; display: flex; flex-wrap: wrap; gap: 14px 25px; color: #d6c9e4; line-height: 1.8; font-size: 1rem; }
.language-list li { counter-increment: language; }
.language-list li::before { content: counter(language) " "; font: 12px var(--mono); color: #8c779d; margin-right: 6px; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; }
.tag-list li { border: 1px solid #38303f; background: #131015; padding: 8px 11px; color: #bfb5ca; font-size: .83rem; line-height: 1.7; overflow-wrap: anywhere; }
.profile-intro { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.9fr); gap: 32px; padding: 30px 0 42px; border-top: 1px solid var(--line); }
.profile-intro p { font-size: 1rem; line-height: 1.95; color: var(--muted); margin: 0 0 18px; word-break: keep-all; }
.profile-intro p:last-child { margin-bottom: 0; }
.education-block { margin-top: 46px; }
.education-grid h4, .other-background h4 { font-size: 1.1rem; font-weight: 400; margin: 0 0 24px; }
.info-rows, .timeline-rows { margin: 0; }
.info-rows > div { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 22px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.9; }
.info-rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-rows dt { color: #96869f; }
.info-rows dd { margin: 0; color: #c5bfce; overflow-wrap: anywhere; word-break: keep-all; }
.info-rows a { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #625170; }
.info-rows a:hover { color: var(--accent); }
.timeline-rows > div { border-top: 1px solid var(--line); padding: 22px 0; }
.timeline-rows > div:last-child { padding-bottom: 0; }
.timeline-rows dt { font: .8rem/1.8 var(--mono); color: #a38bba; margin-bottom: 14px; }
.timeline-rows dd { font-size: 1rem; line-height: 1.9; color: #c5bfce; margin: 0; }
.other-background { padding: 32px; border: 1px solid var(--line); border-top: 0; }
.footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 32px 46px; }
.footer div { display: flex; gap: 18px; align-items: center; }
.footer strong { font-size: 1.2rem; font-weight: 500; }
.footer span, .footer a { font-size: .85rem; color: #b0a7ba; }
.footer a { border: 1px solid #61546c; padding: 12px 16px; min-height: 44px; display: flex; align-items: center; }
.footer a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 1120px) {
  .wrap { width: calc(100% - 72px); }
  .header { padding-inline: 32px; }
  .wordmark-sub { display: none; }
  .hero { gap: 36px; padding-block: 76px; grid-template-columns: 1.2fr 1fr; }
  .hero h1 { font-size: 3.5rem; }
  .hero-index { padding: 24px 20px; }
  .hero-index a { gap: 12px; padding-inline: 0; }
  .hero-index strong { font-size: 1.3rem; }
  .company-body { margin-left: 0; }
  .fact-section { grid-template-columns: 1fr 2.1fr; gap: 24px; }
  .stack-grid > article, .education-grid > article, .profile-grid > article { padding: 28px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding-block: 64px; }
  .hero h1 { font-size: clamp(3.15rem, 6.5vw, 4.3rem); }
  .hero-index { padding: 24px; }
  .hero-index a { padding: 19px 8px; }
  .section-heading h2 { font-size: 2.6rem; }
  .reading-tools { align-items: start; flex-direction: column; gap: 16px; }
  .company > summary { grid-template-columns: 32px minmax(0, 1fr) 22px; gap: 20px; }
  .company-name { font-size: 1.8rem; }
  .fact-section, .profile-intro { grid-template-columns: 1fr; gap: 16px; }
  .profile-intro h3 { margin: 0; }
  .framework-projects > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: 1fr; }
  .project-meta > span { display: block; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header { min-height: 72px; padding-inline: 16px; }
  .wordmark { font-size: 1.05rem; gap: 9px; }
  .hero { padding-block: 48px; gap: 32px; }
  .hero::before { left: -16px; width: 100%; height: 400px; }
  .eyebrow { font-size: .76rem; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(2.5rem, 7.85vw, 3.3rem); line-height: 1.27; }
  .hero-intro { font-size: 1.1rem; margin: 24px 0 20px; }
  .hero-intro br { display: none; }
  .skills { font-size: .75rem; gap: 8px 15px; }
  .hero-index { padding: 22px 18px 8px; }
  .index-top { font-size: .7rem; padding-bottom: 18px; }
  .hero-index a { grid-template-columns: 22px minmax(0, 1fr) 14px; gap: 10px; }
  .hero-index strong { font-size: 1.2rem; }
  .hero-index small { font-size: .78rem; }
  .section-block { padding-bottom: 46px; }
  .divider { padding-top: 32px; font-size: .7rem; letter-spacing: 0; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 2.2rem; }
  .section-heading p { font-size: .92rem; }
  .section-block h3 { font-size: 1.2rem; }
  .reading-hint { font-size: .8rem; }
  .company > summary { grid-template-columns: 25px minmax(0, 1fr) 20px; gap: 12px; padding-block: 25px; padding-right: 0; }
  .case-number { width: 24px; height: 25px; font-size: .72rem; }
  .company-name { font-size: 1.65rem; }
  .company-period { font-size: .72rem; }
  .company-role { font-size: .8rem; }
  .company-role span { display: block; margin-left: 0; }
  .company-body { margin-bottom: 26px; }
  .company-notes { padding: 22px 20px; }
  .company-notes p { font-size: .9rem; }
  .group-label { padding: 16px 20px; font-size: .75rem; }
  .project > summary, .shared-case > summary, .project-summary { padding: 22px 44px 22px 20px; }
  .project > summary > .disclosure, .shared-case > summary > .disclosure { right: 14px; }
  .project-summary { padding-right: 20px; }
  .project-name { font-size: 1.3rem; }
  .project-desc { font-size: .9rem; }
  .project-meta { font-size: .7rem; }
  .shared-case .project-name { font-size: 1.12rem; }
  .shared-case .project-desc { font-size: .8rem; }
  .project-body { padding: 0 20px 22px; }
  .fact-section { padding-block: 22px; }
  .fact-section p { font-size: .95rem; line-height: 1.9; }
  .framework-projects a { padding: 10px; font-size: .8rem; }
  .stack-grid, .education-grid { grid-template-columns: 1fr; }
  .stack-grid > article, .education-grid > article, .profile-grid > article, .other-background { padding: 26px 22px; }
  .tag-list li { font-size: .8rem; }
  .profile-intro { padding-block: 26px 32px; }
  .profile-intro p { font-size: .95rem; }
  .info-rows > div { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; font-size: .85rem; }
  .education-block { margin-top: 34px; }
  .footer { flex-wrap: wrap; padding-block: 26px 34px; gap: 22px; }
  .footer div { flex-basis: 100%; gap: 16px; }
  .footer a { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { --ink: #111; --muted: #444; --line: #bbb; --paper: #fff; color: #111; background: white; color-scheme: light; }
  .hero-index, .reading-tools, .divider a, .disclosure, .skip { display: none; }
  .wrap { width: 100%; }
  .hero { display: block; padding-block: 30px; }
  .hero::before { display: none; }
  .gradient-text { background: none; color: #111; }
  details { display: block; }
  details::details-content { content-visibility: visible; }
  .company-body, .project-body, .company-notes, .group-label { background: white; }
  .company-body { margin-left: 0; }
  .section-block { padding-bottom: 24px; }
  summary { break-after: avoid; }
  .fact-section { break-inside: avoid; }
  .tag-list li { background: white; color: #333; }
  .fact-section p, .fact-section h5, .project-desc, .company-name, .project-name { color: #333; }
}
