:root {
  --pop-bg: #f7f7f7;
  --pop-surface: #ffffff;
  --pop-ink: #393737;
  --pop-ink-strong: #222121;
  --pop-muted: #888787;
  --pop-muted-strong: #666565;
  --pop-line: #e6e6e3;
  --pop-line-strong: #d7d7d3;
  --pop-blue: #eaf2f8;
  --pop-mint: #eaf4ef;
  --pop-lilac: #f1eff7;
  --pop-blush: #f8eeee;
  --pop-yellow: #f6f2df;
  --pop-danger: #9e3e42;
  --pop-font-sans: "DM Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --pop-font-serif: "Newsreader", "Noto Serif KR", Georgia, serif;
  --pop-content: 1184px;
  --pop-reading: 760px;
  --pop-gutter: 32px;
  --pop-shadow: 0 18px 50px rgba(36, 35, 35, 0.07);
  --pop-shadow-soft: 0 10px 28px rgba(36, 35, 35, 0.05);
  --pop-radius: 8px;
  --pop-stage-radius: 28px;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--pop-bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--pop-bg);
  color: var(--pop-ink);
  font-family: var(--pop-font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body:has(.archive-portal),
body:has(.career-site),
body:has(.login-wrap),
body:has(.archive-loading),
body:has(.resume-print-page),
body:has(.intro-print-page),
body:has(.portfolio-print-page),
body:has(.ai-print-page),
body:has(.page) {
  background: var(--pop-bg);
  color: var(--pop-ink);
  font-family: var(--pop-font-sans);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

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

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

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

::selection {
  background: #dce8ef;
  color: var(--pop-ink-strong);
}

:focus-visible {
  outline: 2px solid var(--pop-ink-strong);
  outline-offset: 4px;
}

.button,
.career-action,
.portal-account a,
.portal-account button {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid var(--pop-ink-strong);
  border-radius: 999px;
  background: var(--pop-ink-strong);
  color: #ffffff;
  font-family: var(--pop-font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.career-action:hover,
.portal-account a:hover,
.portal-account button:hover {
  transform: translateY(-2px);
  background: #111111;
  border-color: #111111;
  box-shadow: 0 9px 22px rgba(34, 33, 33, 0.14);
}

.button:active,
.career-action:active,
.portal-account a:active,
.portal-account button:active {
  transform: translateY(0);
}

.button.secondary,
.button.ghost,
.career-action.vault,
.portal-account a {
  border-color: var(--pop-line-strong);
  background: var(--pop-surface);
  color: var(--pop-ink-strong);
}

.button.secondary:hover,
.button.ghost:hover,
.career-action.vault:hover,
.portal-account a:hover {
  border-color: var(--pop-ink-strong);
  background: var(--pop-surface);
  color: var(--pop-ink-strong);
}

.button[disabled],
.button.button-disabled {
  transform: none;
  border-color: var(--pop-line);
  background: #eeeeec;
  color: #aaa9a7;
  box-shadow: none;
  cursor: not-allowed;
}

/* Loading and login */
.archive-loading {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--pop-bg);
  color: var(--pop-muted);
}

.archive-loading-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  background: var(--pop-ink-strong);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  animation: pop-loading 900ms ease-in-out infinite alternate;
}

.archive-loading strong {
  font-size: 14px;
  font-weight: 500;
}

@keyframes pop-loading {
  to {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(34, 33, 33, 0.14);
  }
}

.login-wrap,
.archive-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--pop-bg);
}

.login-shell,
.archive-login-shell {
  width: min(100%, 420px);
  margin: 0;
}

.login-card,
.archive-login .login-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--pop-radius);
  background: var(--pop-surface);
  box-shadow: var(--pop-shadow);
}

.login-card::before,
.archive-login .login-card::before {
  display: none;
}

.login-card .field {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
}

.login-card .field label {
  color: var(--pop-muted-strong);
  font-size: 13px;
  font-weight: 600;
}

.login-card .field input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--pop-line-strong);
  border-radius: 6px;
  background: #fbfbfa;
  color: var(--pop-ink-strong);
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.login-card .field input:focus {
  border-color: var(--pop-ink-strong);
  background: var(--pop-surface);
  box-shadow: 0 0 0 3px rgba(34, 33, 33, 0.08);
}

.login-card .button {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}

.login-card .error {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--pop-danger);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* Shared navigation */
.career-nav-shell,
.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(230, 230, 227, 0.78);
  background: rgba(247, 247, 247, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.career-nav-main,
.portal-topbar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  width: min(var(--pop-content), calc(100% - 64px));
  min-height: 84px;
  margin: 0 auto;
}

.career-wordmark {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--pop-ink-strong);
}

.career-wordmark > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 9px;
  background: var(--pop-ink-strong);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.career-wordmark > strong {
  overflow: hidden;
  color: var(--pop-ink-strong);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.career-nav-links::-webkit-scrollbar {
  display: none;
}

.career-nav-links a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--pop-muted-strong);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 180ms ease;
}

.career-nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--pop-ink-strong);
  transform-origin: left;
  transition: transform 180ms ease;
}

.career-nav-links a:hover,
.career-nav-links a.active {
  color: var(--pop-ink-strong);
}

.career-nav-links a:hover::after,
.career-nav-links a.active::after {
  transform: scaleX(1);
}

.career-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.career-action {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 13px;
}

.career-mobile-menu {
  display: none;
}

/* Archive portal */
.archive-portal,
.career-site {
  min-height: 100vh;
  overflow: clip;
  background: var(--pop-bg);
}

.portal-topbar-inner {
  grid-template-columns: auto 1fr;
}

.portal-account {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.portal-account > span {
  max-width: 180px;
  overflow: hidden;
  margin-right: 4px;
  color: var(--pop-muted);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-account a,
.portal-account button {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 13px;
}

.portal-account button {
  margin: 0;
}

.portal-shell {
  width: min(var(--pop-content), calc(100% - 64px));
  margin: 0 auto;
}

.portal-intro {
  display: grid;
  justify-items: center;
  padding: 112px 0 72px;
  text-align: center;
}

.portal-intro > div {
  max-width: 960px;
}

.portal-intro h1 {
  margin: 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 88px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.portal-intro > p {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--pop-muted);
  font-size: 18px;
  line-height: 1.7;
  word-break: keep-all;
}

.portal-primary {
  padding: 0 0 112px;
}

.portal-section {
  padding: 88px 0 112px;
  border-top: 1px solid var(--pop-line);
}

.portal-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
  text-align: left;
}

.portal-section-head h2 {
  margin: 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.portal-section-head > p {
  margin: 0 0 4px;
  color: var(--pop-muted);
  font-size: 14px;
  line-height: 1.6;
}

.portal-section-head span,
.portal-vault-index {
  display: none;
}

.portal-document-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.portal-document {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--pop-line);
  border-radius: var(--pop-radius);
  background: var(--pop-surface);
  box-shadow: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.portal-document:nth-child(2n) {
  background: var(--pop-surface);
}

.portal-document:nth-child(3n) {
  background: var(--pop-surface);
}

.portal-document.featured {
  background: var(--pop-lilac);
}

.portal-document:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 56px rgba(36, 35, 35, 0.09);
}

.portal-document-date {
  color: var(--pop-muted);
  font-size: 13px;
  font-weight: 500;
}

.portal-document h2 {
  margin: 22px 0 12px;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
  word-break: keep-all;
}

.portal-document p {
  margin: 0;
  color: var(--pop-muted-strong);
  font-size: 14px;
  line-height: 1.6;
  word-break: keep-all;
}

.portal-document > strong {
  position: relative;
  margin-top: auto;
  padding-top: 22px;
  color: var(--pop-ink-strong);
  font-size: 14px;
  font-weight: 600;
}

.portal-document > strong::after {
  content: "  →";
}

.portal-vault {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  min-height: 310px;
  margin: 0;
  padding: 64px;
  border-radius: var(--pop-stage-radius);
  background: var(--pop-blue);
}

.portal-vault h2 {
  margin: 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

.portal-vault p {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--pop-muted-strong);
  font-size: 17px;
  line-height: 1.7;
}

.portal-vault > a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(57, 55, 55, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pop-ink-strong);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portal-vault > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(34, 33, 33, 0.15);
}

.portal-footer,
.career-site-footer {
  display: flex;
  width: min(var(--pop-content), calc(100% - 64px));
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-top: 1px solid var(--pop-line);
  color: var(--pop-muted);
  font-size: 13px;
}

.portal-footer strong,
.career-site-footer strong {
  color: var(--pop-muted-strong);
  font-weight: 500;
}

/* Shared career hero */
.career-hero {
  display: grid;
  width: min(var(--pop-content), calc(100% - 64px));
  justify-items: center;
  margin: 0 auto;
  padding: 104px 0 96px;
}

.career-hero-copy {
  display: grid;
  max-width: 930px;
  justify-items: center;
  text-align: center;
  animation: pop-enter 520ms ease both;
}

@keyframes pop-enter {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.career-hero h1 {
  margin: 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 82px;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.career-hero-subtitle {
  margin: 18px 0 0;
  color: var(--pop-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.career-hero h2 {
  max-width: 880px;
  margin: 38px 0 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 43px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
  word-break: keep-all;
}

.career-hero-summary {
  display: grid;
  max-width: 760px;
  gap: 5px;
  margin-top: 28px;
}

.career-hero-summary p {
  margin: 0;
  color: var(--pop-muted);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
}

.career-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.career-hero-visual {
  width: min(920px, 100%);
  margin-top: 66px;
  animation: pop-enter 620ms 80ms ease both;
}

.career-profile-card,
.career-index-card,
.ai-system-map {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: var(--pop-stage-radius);
  box-shadow: none;
}

.career-profile-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
  gap: 50px;
  padding: 48px 70px;
  background: var(--pop-blue);
}

.resume-page .career-profile-card {
  background: var(--pop-mint);
}

.career-intro-page .career-profile-card {
  background: var(--pop-lilac);
}

.career-profile-card > img {
  width: 230px;
  height: 252px;
  border-radius: var(--pop-radius);
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--pop-shadow-soft);
}

.career-profile-card-body {
  display: grid;
  min-width: 0;
  align-content: center;
}

.career-profile-card-body > strong {
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
}

.career-profile-card-body > p {
  margin: 13px 0 0;
  color: var(--pop-muted-strong);
  font-size: 17px;
}

.career-profile-tags,
.scroll-project-tech,
.ai-case-tags,
.ai-system-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 27px;
}

.career-profile-tags span,
.scroll-project-tech span,
.ai-case-tags span,
.ai-system-signals span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(57, 55, 55, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--pop-muted-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}

.career-index-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
  align-items: center;
  gap: 52px;
  padding: 56px 70px;
  background: var(--pop-mint);
}

.career-index-card > strong {
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 128px;
  font-weight: 400;
  line-height: 0.8;
}

.career-index-card > p {
  margin: 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 34px;
  line-height: 1.15;
}

.career-index-card dl {
  grid-column: 2;
  display: grid;
  gap: 0;
  margin: -18px 0 0;
}

.career-index-card dl > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(57, 55, 55, 0.1);
}

.career-index-card dt,
.career-index-card dd {
  margin: 0;
  color: var(--pop-muted-strong);
  font-size: 14px;
}

.career-index-card dt {
  font-weight: 600;
}

.career-metric-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 !important;
  width: min(var(--pop-content), calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0;
  border-top: 1px solid var(--pop-line);
  border-bottom: 1px solid var(--pop-line);
}

.career-metric-band > span,
.career-metric-band > article {
  display: grid;
  min-height: 46px;
  place-content: center;
  padding: 0 18px;
  border: 0 !important;
  border-right: 1px solid var(--pop-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pop-muted-strong);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.career-metric-band > :last-child {
  border-right: 0 !important;
}

.career-content-section {
  width: min(var(--pop-content), calc(100% - 64px));
  margin: 0 auto;
  padding: 116px 0;
  border-top: 1px solid var(--pop-line);
}

.career-metric-band + .career-content-section {
  border-top: 0;
}

.career-section-head {
  display: grid;
  max-width: 820px;
  justify-items: center;
  margin: 0 auto 58px;
  text-align: center;
}

.career-section-index {
  display: none;
}

.career-section-copy,
.career-section-title-row {
  display: grid;
  justify-items: center;
}

.career-section-title-row h2,
.career-section-head h2 {
  margin: 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
  word-break: keep-all;
}

.career-section-title-row .button {
  margin-top: 26px;
}

.career-section-copy > p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--pop-muted);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
}

/* Portfolio */
.scroll-text-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scroll-text-grid article {
  min-height: 238px;
  padding: 32px;
  border-radius: var(--pop-radius);
  background: var(--pop-mint);
}

.scroll-text-grid article:nth-child(2) {
  background: var(--pop-blue);
}

.scroll-text-grid article:nth-child(3) {
  background: var(--pop-lilac);
}

.scroll-text-grid h3 {
  margin: 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  word-break: keep-all;
}

.scroll-text-grid p {
  margin: 22px 0 0;
  color: var(--pop-muted-strong);
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}

.scroll-project-list {
  display: grid;
}

.scroll-project {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 28px;
  padding: 52px 0;
  border-top: 1px solid var(--pop-line);
}

.scroll-project:first-child {
  border-top: 0;
}

.scroll-project-no {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--pop-line-strong);
  border-radius: 50%;
  color: var(--pop-muted-strong);
  font-size: 13px;
  font-weight: 500;
}

.scroll-project-main {
  min-width: 0;
}

.scroll-project-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
}

.scroll-project-title-row h3 {
  margin: 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 35px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
  word-break: keep-all;
}

.scroll-project-title-row time {
  padding-top: 7px;
  color: var(--pop-muted);
  font-size: 13px;
  white-space: nowrap;
}

.scroll-project-main > p {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--pop-muted-strong);
  font-size: 16px;
  line-height: 1.7;
}

.scroll-project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.scroll-project-detail-grid section {
  padding: 26px 28px;
  border-radius: var(--pop-radius);
  background: var(--pop-blue);
}

.scroll-project-detail-grid section + section {
  background: var(--pop-lilac);
}

.scroll-project-detail-grid strong {
  color: var(--pop-ink-strong);
  font-size: 14px;
  font-weight: 600;
}

.scroll-project-detail-grid ul,
.ai-evidence-case ul,
.ai-surface-grid ul,
.resume-duty-list,
.intro-detail ul {
  display: grid;
  gap: 9px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.scroll-project-detail-grid li,
.ai-evidence-case li,
.ai-surface-grid li,
.resume-duty-list li,
.intro-detail li {
  position: relative;
  padding-left: 16px;
  color: var(--pop-muted-strong);
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.scroll-project-detail-grid li::before,
.ai-evidence-case li::before,
.ai-surface-grid li::before,
.resume-duty-list li::before,
.intro-detail li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a9a8a5;
}

.scroll-career-list {
  display: grid;
  border-top: 1px solid var(--pop-line);
}

.scroll-career-list article {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 44px;
  padding: 34px 0;
  border-bottom: 1px solid var(--pop-line);
}

.scroll-career-list article > div {
  display: grid;
  gap: 7px;
}

.scroll-career-list strong {
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 29px;
  font-weight: 400;
}

.scroll-career-list span {
  color: var(--pop-muted);
  font-size: 13px;
}

.scroll-career-list p {
  margin: 3px 0 0;
  color: var(--pop-muted-strong);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

.scroll-tech-table,
.resume-table,
.project-index-board {
  overflow: hidden;
  border: 1px solid var(--pop-line);
  border-radius: var(--pop-radius);
  background: var(--pop-surface);
  box-shadow: var(--pop-shadow-soft);
}

.scroll-tech-head,
.scroll-tech-row {
  display: grid;
  grid-template-columns: 160px 220px 110px minmax(0, 1fr);
  align-items: center;
}

.scroll-tech-head,
.resume-table-head,
.project-index-head {
  min-height: 48px;
  background: #f0f0ee;
  color: var(--pop-muted-strong);
  font-size: 12px;
  font-weight: 600;
}

.scroll-tech-head > *,
.scroll-tech-row > * {
  min-width: 0;
  padding: 14px 20px;
}

.scroll-tech-row {
  min-height: 68px;
  border-top: 1px solid var(--pop-line);
}

.scroll-tech-row > span,
.scroll-tech-row > em {
  color: var(--pop-muted-strong);
  font-size: 13px;
  font-style: normal;
}

.scroll-tech-row > strong {
  color: var(--pop-ink-strong);
  font-size: 14px;
  font-weight: 600;
}

.scroll-tech-row > p {
  margin: 0;
  color: var(--pop-muted-strong);
  font-size: 14px;
  line-height: 1.6;
}

.scroll-closing {
  width: min(var(--pop-content), calc(100% - 64px));
  margin-bottom: 116px;
  padding: 86px 70px;
  border: 0;
  border-radius: var(--pop-stage-radius);
  background: var(--pop-blue);
  text-align: center;
}

.scroll-closing h2 {
  max-width: 920px;
  margin: 0 auto;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 49px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: balance;
  word-break: keep-all;
}

/* Project index and resume tables */
.project-index-head,
.project-index-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 190px;
  align-items: center;
}

.project-index-head > *,
.project-index-row > * {
  min-width: 0;
  padding: 14px 22px;
}

.project-index-row {
  min-height: 72px;
  border-top: 1px solid var(--pop-line);
}

.project-index-row:hover {
  background: #fafaf8;
}

.project-index-row .project-no,
.project-index-row time {
  color: var(--pop-muted);
  font-size: 13px;
}

.project-index-row strong {
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.35;
  word-break: keep-all;
}

.resume-section {
  padding-top: 104px;
  padding-bottom: 104px;
}

.resume-table-head,
.resume-table-row,
.resume-career-main-row {
  display: grid;
  align-items: stretch;
}

.resume-education-table .resume-table-head,
.resume-education-table .resume-table-row,
.resume-certificate-table .resume-table-head,
.resume-certificate-table .resume-table-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(120px, 0.45fr);
}

.resume-project-table .resume-table-head,
.resume-project-table .resume-table-row {
  grid-template-columns: 84px minmax(0, 1fr) 190px;
}

.resume-career-table .resume-table-head,
.resume-career-main-row {
  grid-template-columns: 180px 190px minmax(0, 1fr);
}

.resume-table-head > *,
.resume-table-row > *,
.resume-career-main-row > * {
  min-width: 0;
  padding: 16px 22px;
}

.resume-table-row,
.resume-career-main-row,
.resume-career-role-row {
  border-top: 1px solid var(--pop-line);
}

.resume-table-row {
  min-height: 72px;
  align-items: center;
}

.resume-table-row strong,
.resume-career-main-row strong {
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 21px;
  font-weight: 400;
}

.resume-table-row span,
.resume-table-row time,
.resume-career-main-row time,
.resume-table-row em {
  color: var(--pop-muted-strong);
  font-size: 14px;
  font-style: normal;
}

.resume-career-role-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 62px;
  background: var(--pop-blue);
}

.resume-career-role-row > * {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 16px 22px;
}

.resume-career-role-row span {
  color: var(--pop-muted-strong);
  font-size: 13px;
  font-weight: 600;
}

.resume-career-role-row p {
  margin: 0;
  color: var(--pop-ink-strong);
  font-size: 14px;
  line-height: 1.6;
}

.resume-duty-list {
  margin: 0;
}

/* Self introduction */
.intro-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.intro-highlight-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 20px;
  min-height: 150px;
  align-items: start;
  padding: 30px;
  border-radius: var(--pop-radius);
  background: var(--pop-mint);
}

.intro-highlight-grid article:nth-child(2n) {
  background: var(--pop-blue);
}

.intro-highlight-grid article:nth-child(3n) {
  background: var(--pop-lilac);
}

.intro-highlight-grid article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--pop-muted-strong);
  font-size: 12px;
  font-weight: 600;
}

.intro-highlight-grid p {
  margin: 2px 0 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 22px;
  line-height: 1.5;
  word-break: keep-all;
}

.intro-company-list {
  display: grid;
  gap: 94px;
}

.intro-company {
  padding-top: 46px;
  border-top: 1px solid var(--pop-line-strong);
}

.intro-company-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.intro-company-head h3 {
  margin: 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 47px;
  font-weight: 400;
  line-height: 1.08;
}

.intro-company-head > div > span {
  display: none;
}

.intro-company-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.intro-company-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--pop-line);
  border-radius: 999px;
  background: var(--pop-surface);
  color: var(--pop-muted-strong);
  font-size: 12px;
  font-weight: 500;
}

.intro-role {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--pop-muted-strong);
  font-size: 17px;
  line-height: 1.7;
}

.intro-project-list {
  display: grid;
  margin-top: 42px;
}

.intro-project {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 32px 0;
  border-top: 1px solid var(--pop-line);
}

.intro-project-head,
.intro-metric,
.intro-detail {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 30px;
}

.intro-project-head > strong,
.intro-metric > strong,
.intro-detail > strong {
  color: var(--pop-muted);
  font-size: 13px;
  font-weight: 600;
}

.intro-project-head h3 {
  margin: 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.35;
  word-break: keep-all;
}

.intro-project-body {
  display: grid;
  gap: 22px;
  margin-top: 25px;
}

.intro-metric p {
  margin: 0;
  color: var(--pop-ink-strong);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  word-break: keep-all;
}

.intro-detail ul {
  margin: 0;
}

.intro-essay {
  display: grid;
  max-width: 900px;
  gap: 0;
  margin: 0 auto;
}

.intro-essay article {
  padding: 48px 0;
  border-top: 1px solid var(--pop-line);
}

.intro-essay article:first-child {
  border-top: 0;
  padding-top: 0;
}

.intro-essay article > span {
  display: none;
}

.intro-essay h3 {
  margin: 0 0 26px;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.25;
}

.intro-essay p {
  margin: 0 0 18px;
  color: var(--pop-muted-strong);
  font-size: 16px;
  line-height: 1.95;
  word-break: keep-all;
}

/* AI security */
.ai-system-map {
  display: grid;
  gap: 28px;
  padding: 46px 54px;
  background: var(--pop-lilac);
}

.ai-system-map > header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ai-system-map > header img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.ai-system-map > header strong {
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 28px;
  font-weight: 400;
}

.ai-system-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ai-system-pipeline article {
  display: grid;
  min-height: 116px;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border-radius: var(--pop-radius);
  background: rgba(255, 255, 255, 0.78);
}

.ai-system-pipeline article span,
.ai-system-pipeline article small {
  color: var(--pop-muted);
  font-size: 11px;
}

.ai-system-pipeline article strong {
  color: var(--pop-ink-strong);
  font-size: 15px;
  font-weight: 600;
}

.ai-system-signals {
  margin: 0;
}

.ai-system-map > footer {
  padding-top: 18px;
  border-top: 1px solid rgba(57, 55, 55, 0.1);
  color: var(--pop-muted-strong);
  font-size: 13px;
}

.ai-metric-band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-metric-band article {
  gap: 5px;
}

.ai-metric-band article strong {
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
}

.ai-metric-band article span {
  color: var(--pop-muted);
  font-size: 12px;
}

.ai-evidence-list {
  display: grid;
}

.ai-evidence-case {
  padding: 48px 0;
  border-top: 1px solid var(--pop-line);
}

.ai-evidence-case:first-child {
  border-top: 0;
}

.ai-evidence-case > header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 28px;
}

.ai-case-index span,
.ai-surface-grid article > span,
.ai-method-flow article > span,
.ai-contribution-list article > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--pop-line-strong);
  border-radius: 50%;
  color: var(--pop-muted-strong);
  font-size: 12px;
  font-weight: 600;
}

.ai-evidence-case h3 {
  margin: 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
}

.ai-evidence-case header p {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--pop-muted-strong);
  font-size: 16px;
  line-height: 1.75;
}

.ai-case-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0 84px;
}

.ai-case-body section {
  padding: 26px 28px;
  border-radius: var(--pop-radius);
  background: var(--pop-blue);
}

.ai-case-body section + section {
  background: var(--pop-mint);
}

.ai-case-body section > span {
  color: var(--pop-ink-strong);
  font-size: 13px;
  font-weight: 600;
}

.ai-case-tags {
  margin-left: 84px;
}

.ai-surface-grid,
.ai-method-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ai-surface-grid article,
.ai-method-flow article {
  min-height: 310px;
  padding: 28px;
  border-radius: var(--pop-radius);
  background: var(--pop-blue);
}

.ai-surface-grid article:nth-child(2n),
.ai-method-flow article:nth-child(2n) {
  background: var(--pop-mint);
}

.ai-surface-grid article:nth-child(3n),
.ai-method-flow article:nth-child(3n) {
  background: var(--pop-lilac);
}

.ai-surface-grid h3,
.ai-method-flow h3,
.ai-contribution-list h3 {
  margin: 28px 0 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}

.ai-surface-grid article > p,
.ai-method-flow article > p,
.ai-contribution-list article > p {
  margin: 13px 0 0;
  color: var(--pop-muted-strong);
  font-size: 14px;
  line-height: 1.7;
}

.ai-contribution-list {
  display: grid;
  border-top: 1px solid var(--pop-line);
}

.ai-contribution-list article {
  display: grid;
  grid-template-columns: 54px minmax(220px, 0.65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--pop-line);
}

.ai-contribution-list h3,
.ai-contribution-list article > p {
  margin-top: 5px;
}

/* Admin logs */
.page {
  min-height: 100vh;
  padding: 0 32px 72px;
  background: var(--pop-bg);
}

.shell {
  width: min(var(--pop-content), 100%);
  margin: 0 auto;
}

.page .topbar {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--pop-line);
}

.page .topbar > div:first-child,
.admin-heading {
  display: flex;
  align-items: center;
  gap: 28px;
}

.page .brand {
  color: var(--pop-muted);
  font-size: 14px;
  font-weight: 600;
}

.page .topbar h1 {
  margin: 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
}

.page .topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.log-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(130px, 0.7fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) auto;
  align-items: end;
  gap: 12px;
  margin: 54px 0 20px;
  padding: 24px;
  border-radius: var(--pop-radius);
  background: var(--pop-surface);
  box-shadow: var(--pop-shadow-soft);
}

.field.compact {
  display: grid;
  gap: 8px;
}

.field.compact label {
  color: var(--pop-muted-strong);
  font-size: 12px;
  font-weight: 600;
}

.field.compact input,
.field.compact select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--pop-line-strong);
  border-radius: 6px;
  background: #fbfbfa;
  outline: 0;
}

.field.compact input:focus,
.field.compact select:focus {
  border-color: var(--pop-ink-strong);
  box-shadow: 0 0 0 3px rgba(34, 33, 33, 0.08);
}

.log-list {
  overflow: hidden;
  border: 1px solid var(--pop-line);
  border-radius: var(--pop-radius);
  background: var(--pop-surface);
  box-shadow: var(--pop-shadow-soft);
}

.log-summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  border-bottom: 1px solid var(--pop-line);
}

.log-summary strong {
  color: var(--pop-ink-strong);
  font-size: 14px;
  font-weight: 600;
}

.log-summary span {
  color: var(--pop-muted);
  font-size: 12px;
}

.log-head,
.log-row {
  display: grid;
  grid-template-columns: 90px minmax(210px, 1fr) 120px 80px 150px 180px;
  align-items: center;
}

.log-head {
  min-height: 46px;
  background: #f0f0ee;
}

.log-head > span,
.log-row > * {
  min-width: 0;
  padding: 12px 16px;
}

.sort-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pop-muted-strong);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.log-row {
  min-height: 62px;
  border-top: 1px solid var(--pop-line);
  color: var(--pop-muted-strong);
  font-size: 13px;
}

.log-row strong {
  overflow: hidden;
  color: var(--pop-ink-strong);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-code {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--pop-mint);
  color: #3d6f5a;
  font-size: 11px;
  font-weight: 600;
}

.status-code.status-4,
.status-code.status-5 {
  background: var(--pop-blush);
  color: var(--pop-danger);
}

.empty-row {
  padding: 80px 24px;
  color: var(--pop-muted);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.pagination > span {
  color: var(--pop-muted-strong);
  font-size: 13px;
}

/* Print previews */
.resume-print-page,
.intro-print-page,
.portfolio-print-page,
.ai-print-page {
  min-height: 100vh;
  padding: 92px 0 64px;
  background: #ececea;
  color: var(--pop-ink);
  font-family: var(--pop-font-sans);
}

.print-toolbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  display: flex;
  transform: translateX(-50%);
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--pop-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--pop-shadow-soft);
  backdrop-filter: blur(14px);
}

.pdf-sheet {
  overflow: hidden;
  background: #ffffff;
  color: var(--pop-ink);
  font-family: var(--pop-font-sans);
  box-shadow: 0 20px 60px rgba(34, 33, 33, 0.12);
}

.pdf-sheet + .pdf-sheet {
  margin-top: 28px;
}

.pdf-sheet h1,
.pdf-sheet h2,
.pdf-sheet h3,
.resume-print-head h1,
.pdf-document-header h1,
.pdf-section-header h1,
.single-print-hero h1 {
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-weight: 400;
  letter-spacing: 0;
}

.resume-print-block,
.intro-pdf-block,
.single-print-block,
.ai-pdf-case,
.ai-pdf-surface,
.ai-pdf-method,
.ai-pdf-contribution {
  border-color: var(--pop-line) !important;
}

.pdf-page-footer {
  color: var(--pop-muted);
  border-color: var(--pop-line);
}

/* AI portfolio A4 sheets */
.ai-pdf-sheet {
  position: relative;
  display: flex;
  width: 210mm;
  height: 297mm !important;
  min-height: 297mm !important;
  max-height: 297mm !important;
  flex-direction: column;
  padding: 15mm 15mm 11mm;
  overflow: hidden;
}

.ai-pdf-identity,
.ai-pdf-section-header,
.ai-pdf-sheet > .pdf-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8mm;
  padding-bottom: 6mm;
  border-bottom: 1px solid var(--pop-line);
}

.ai-pdf-identity h1,
.ai-pdf-section-header h1,
.ai-pdf-sheet > .pdf-section-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.ai-pdf-identity p {
  margin: 2.5mm 0 0;
  color: var(--pop-muted-strong);
  font-size: 10px;
  line-height: 1.4;
}

.ai-pdf-identity img {
  width: 25mm;
  height: 29mm;
  border-radius: 4px;
  object-fit: cover;
  object-position: center top;
}

.ai-pdf-section-header > strong,
.ai-pdf-sheet > .pdf-section-header > strong {
  color: var(--pop-muted);
  font-family: var(--pop-font-serif);
  font-size: 22px;
  font-weight: 400;
}

.ai-pdf-statement {
  padding: 7mm 0 6mm;
}

.ai-pdf-statement h2 {
  max-width: 160mm;
  margin: 0;
  font-size: 23px;
  line-height: 1.22;
  word-break: keep-all;
}

.ai-pdf-statement p {
  max-width: 165mm;
  margin: 3mm 0 0;
  color: var(--pop-muted-strong);
  font-size: 9.5px;
  line-height: 1.55;
  word-break: keep-all;
}

.ai-pdf-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 5px;
  background: var(--pop-blue);
}

.ai-pdf-metrics > div {
  display: grid;
  gap: 1.5mm;
  min-height: 20mm;
  align-content: center;
  justify-items: center;
  padding: 3mm;
  border-right: 1px solid rgba(57, 55, 55, 0.08);
  text-align: center;
}

.ai-pdf-metrics > div:last-child {
  border-right: 0;
}

.ai-pdf-metrics strong {
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.ai-pdf-metrics span {
  color: var(--pop-muted-strong);
  font-size: 8px;
  line-height: 1.35;
}

.ai-pdf-case {
  margin-top: 6mm;
  padding: 0 !important;
  border: 0 !important;
}

.ai-pdf-case-title {
  display: grid;
  grid-template-columns: 9mm minmax(0, 1fr);
  align-items: center;
  gap: 4mm;
}

.ai-pdf-case-title > span {
  display: grid;
  width: 9mm;
  height: 9mm;
  place-items: center;
  border: 1px solid var(--pop-line-strong);
  border-radius: 50%;
  color: var(--pop-muted-strong);
  font-size: 8px;
  font-weight: 600;
}

.ai-pdf-case-title h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  word-break: keep-all;
}

.ai-pdf-lead {
  margin: 3mm 0 0;
  color: var(--pop-muted-strong);
  font-size: 9px;
  line-height: 1.5;
  word-break: keep-all;
}

.ai-pdf-case-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3mm;
  margin-top: 4mm;
}

.ai-pdf-case-columns section {
  padding: 4mm;
  border-radius: 5px;
  background: var(--pop-blue);
}

.ai-pdf-case-columns section + section {
  background: var(--pop-mint);
}

.ai-pdf-case-columns b,
.ai-pdf-surface > h2,
.ai-pdf-method > h2,
.ai-pdf-contribution > h2 {
  color: var(--pop-ink-strong);
  font-size: 9px;
  font-weight: 600;
}

.ai-pdf-case-columns ul,
.ai-pdf-surface ul {
  display: grid;
  gap: 1.5mm;
  margin: 2.5mm 0 0;
  padding: 0;
  list-style: none;
}

.ai-pdf-case-columns li,
.ai-pdf-surface li {
  position: relative;
  padding-left: 3mm;
  color: var(--pop-muted-strong);
  font-size: 7.8px;
  line-height: 1.42;
  word-break: keep-all;
}

.ai-pdf-case-columns li::before,
.ai-pdf-surface li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 1mm;
  height: 1mm;
  border-radius: 50%;
  background: #aaa9a6;
}

.ai-pdf-case-large {
  margin-top: 6mm;
}

.ai-pdf-surface,
.ai-pdf-method,
.ai-pdf-contribution {
  margin-top: 6mm;
  padding: 0 !important;
  border: 0 !important;
}

.ai-pdf-surface > div,
.ai-pdf-method > div,
.ai-pdf-contribution > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3mm;
  margin-top: 3mm;
}

.ai-pdf-surface article,
.ai-pdf-method article,
.ai-pdf-contribution article {
  padding: 3.5mm;
  border-radius: 5px;
  background: var(--pop-lilac);
}

.ai-pdf-surface article:nth-child(2n),
.ai-pdf-method article:nth-child(2n),
.ai-pdf-contribution article:nth-child(2n) {
  background: var(--pop-blue);
}

.ai-pdf-surface article > span,
.ai-pdf-method article > span,
.ai-pdf-contribution article > span {
  color: var(--pop-muted);
  font-size: 7.5px;
  font-weight: 600;
}

.ai-pdf-surface h3,
.ai-pdf-method h3,
.ai-pdf-contribution h3 {
  margin: 1.5mm 0 0;
  font-size: 11px;
  line-height: 1.25;
}

.ai-pdf-surface article > p,
.ai-pdf-method article > p,
.ai-pdf-contribution article > p {
  margin: 1.5mm 0 0;
  color: var(--pop-muted-strong);
  font-size: 7.7px;
  line-height: 1.42;
  word-break: keep-all;
}

.ai-pdf-surface ul {
  margin-top: 2mm;
}

.ai-pdf-method > div {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-pdf-method article {
  min-height: 41mm;
}

.ai-pdf-contribution article {
  min-height: 37mm;
}

.ai-pdf-closing {
  display: grid;
  justify-items: center;
  gap: 2mm;
  margin-top: 6mm;
  padding: 5mm;
  border-radius: 5px;
  background: var(--pop-mint);
  text-align: center;
}

.ai-pdf-closing strong {
  color: var(--pop-ink);
  font-family: var(--pop-font-serif);
  font-size: 14px;
  font-weight: 400;
}

.ai-pdf-closing p {
  margin: 0;
  color: var(--pop-muted);
  font-size: 8px;
}

.ai-pdf-sheet .pdf-page-footer {
  position: static;
  display: flex;
  min-height: 8mm;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 3mm;
  border-top: 1px solid var(--pop-line);
  font-size: 7.5px;
}

@media (max-width: 1080px) {
  :root {
    --pop-gutter: 24px;
  }

  .career-nav-main,
  .portal-topbar-inner,
  .portal-shell,
  .career-hero,
  .career-metric-band,
  .career-content-section,
  .portal-footer,
  .career-site-footer,
  .scroll-closing {
    width: min(var(--pop-content), calc(100% - 48px));
  }

  .career-nav-main {
    gap: 24px;
  }

  .career-nav-links {
    gap: 20px;
  }

  .career-nav-actions .career-action.primary {
    display: none;
  }

  .portal-document-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .career-hero h1,
  .portal-intro h1 {
    font-size: 68px;
  }

  .career-profile-card {
    padding: 46px 54px;
  }

  .ai-surface-grid,
  .ai-method-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .log-head,
  .log-row {
    grid-template-columns: 80px minmax(210px, 1fr) 110px 70px 135px 160px;
  }
}

@media (max-width: 880px) {
  .career-nav-main,
  .portal-topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 72px;
  }

  .career-nav-links,
  .career-nav-actions {
    display: none;
  }

  .career-mobile-menu {
    display: block;
    grid-column: 3;
  }

  .career-mobile-menu summary {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--pop-line);
    border-radius: 8px;
    background: var(--pop-surface);
    box-shadow: var(--pop-shadow-soft);
    cursor: pointer;
    list-style: none;
  }

  .career-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .career-mobile-menu summary span {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--pop-ink-strong);
    transition: transform 180ms ease;
  }

  .career-mobile-menu[open] summary span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .career-mobile-menu[open] summary span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .career-mobile-menu-panel {
    position: absolute;
    top: 64px;
    right: 24px;
    left: 24px;
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--pop-line);
    border-radius: var(--pop-radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--pop-shadow);
  }

  .career-mobile-menu-panel nav {
    display: grid;
  }

  .career-mobile-menu-panel nav a {
    min-height: 44px;
    padding: 0 10px;
    border-bottom: 1px solid var(--pop-line);
    color: var(--pop-muted-strong);
    font-size: 14px;
    font-weight: 500;
  }

  .career-mobile-menu-panel nav a.active {
    color: var(--pop-ink-strong);
    font-weight: 600;
  }

  .career-mobile-menu-panel > div {
    display: flex;
    gap: 8px;
  }

  .career-mobile-menu-panel .career-action {
    flex: 1;
  }

  .portal-account > span {
    display: none;
  }

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

  .career-hero,
  .portal-intro {
    padding-top: 86px;
  }

  .career-hero h1,
  .portal-intro h1 {
    font-size: 60px;
  }

  .career-hero h2 {
    font-size: 38px;
  }

  .career-profile-card {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 34px;
    padding: 40px;
  }

  .career-profile-card > img {
    width: 190px;
    height: 230px;
  }

  .career-profile-card-body > strong {
    font-size: 34px;
  }

  .career-index-card {
    padding: 48px;
  }

  .career-index-card > strong {
    font-size: 100px;
  }

  .career-section-title-row h2,
  .career-section-head h2,
  .portal-section-head h2 {
    font-size: 48px;
  }

  .career-metric-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .career-metric-band > :nth-child(3n) {
    border-right: 0 !important;
  }

  .career-metric-band > :nth-child(n + 4) {
    border-top: 1px solid var(--pop-line) !important;
  }

  .scroll-text-grid {
    grid-template-columns: 1fr;
  }

  .scroll-text-grid article {
    min-height: 0;
  }

  .scroll-tech-head,
  .scroll-tech-row {
    grid-template-columns: 130px 180px 90px minmax(0, 1fr);
  }

  .scroll-career-list article {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .intro-project-head,
  .intro-metric,
  .intro-detail {
    grid-template-columns: 140px minmax(0, 1fr);
  }

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

  .log-filters .button {
    width: 100%;
  }

  .log-list {
    overflow-x: auto;
  }

  .log-head,
  .log-row {
    min-width: 900px;
  }
}

@media (max-width: 680px) {
  :root {
    --pop-gutter: 20px;
    --pop-stage-radius: 20px;
  }

  .career-nav-main,
  .portal-topbar-inner,
  .portal-shell,
  .career-hero,
  .career-metric-band,
  .career-content-section,
  .portal-footer,
  .career-site-footer,
  .scroll-closing {
    width: calc(100% - 40px);
  }

  .career-wordmark > strong {
    font-size: 17px;
  }

  .portal-account {
    gap: 7px;
  }

  .portal-account a,
  .portal-account button {
    min-height: 40px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .portal-intro {
    padding: 72px 0 54px;
  }

  .portal-intro h1,
  .career-hero h1 {
    font-size: 44px;
    line-height: 1;
  }

  .portal-intro > p,
  .career-hero-summary p {
    font-size: 16px;
  }

  .portal-section,
  .career-content-section {
    padding: 88px 0;
  }

  .portal-primary {
    padding-bottom: 88px;
  }

  .portal-section-head,
  .career-section-head {
    margin-bottom: 42px;
  }

  .portal-section-head {
    display: grid;
    justify-content: start;
    gap: 10px;
  }

  .portal-section-head > p {
    margin: 0;
  }

  .career-section-title-row h2,
  .career-section-head h2,
  .portal-section-head h2 {
    font-size: 40px;
    line-height: 1.1;
  }

  .career-section-copy > p,
  .portal-section-head > p {
    font-size: 15px;
  }

  .portal-document-grid {
    grid-template-columns: 1fr;
  }

  .portal-document {
    min-height: 250px;
    padding: 28px;
  }

  .portal-vault {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    margin: 0;
    padding: 38px 30px;
  }

  .portal-vault h2 {
    font-size: 35px;
  }

  .portal-vault > a {
    width: 100%;
  }

  .career-hero {
    padding: 78px 0 82px;
  }

  .career-hero-subtitle {
    margin-top: 13px;
    font-size: 14px;
  }

  .career-hero h2 {
    margin-top: 31px;
    font-size: 32px;
    line-height: 1.18;
  }

  .career-hero-summary {
    margin-top: 23px;
  }

  .career-hero-actions {
    width: 100%;
    margin-top: 29px;
  }

  .career-hero-actions .button {
    flex: 1 1 150px;
  }

  .career-hero-visual {
    margin-top: 46px;
  }

  .career-profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 26px;
    padding: 32px 24px;
    text-align: center;
  }

  .career-profile-card > img {
    width: 160px;
    height: 190px;
  }

  .career-profile-card-body {
    justify-items: center;
  }

  .career-profile-card-body > strong {
    font-size: 31px;
  }

  .career-profile-tags {
    justify-content: center;
  }

  .career-index-card {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 38px 30px;
    text-align: center;
  }

  .career-index-card > strong {
    font-size: 90px;
  }

  .career-index-card > p {
    font-size: 29px;
  }

  .career-index-card dl {
    grid-column: 1;
    width: 100%;
    margin: 0;
    text-align: left;
  }

  .career-metric-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-metric-band > :nth-child(3n) {
    border-right: 1px solid var(--pop-line) !important;
  }

  .career-metric-band > :nth-child(2n) {
    border-right: 0 !important;
  }

  .career-metric-band > :nth-child(n + 3) {
    border-top: 1px solid var(--pop-line) !important;
  }

  .scroll-project {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 42px 0;
  }

  .scroll-project-title-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .scroll-project-title-row h3 {
    font-size: 30px;
  }

  .scroll-project-title-row time {
    padding: 0;
  }

  .scroll-project-detail-grid {
    grid-template-columns: 1fr;
  }

  .scroll-career-list article {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .scroll-tech-table,
  .resume-table,
  .project-index-board {
    overflow-x: auto;
  }

  .scroll-tech-head,
  .scroll-tech-row {
    min-width: 720px;
  }

  .scroll-closing {
    margin-bottom: 88px;
    padding: 62px 28px;
  }

  .scroll-closing h2 {
    font-size: 36px;
  }

  .project-index-head,
  .project-index-row {
    min-width: 680px;
  }

  .resume-education-table .resume-table-head,
  .resume-education-table .resume-table-row,
  .resume-certificate-table .resume-table-head,
  .resume-certificate-table .resume-table-row {
    min-width: 620px;
  }

  .resume-project-table .resume-table-head,
  .resume-project-table .resume-table-row {
    min-width: 680px;
  }

  .resume-career-table .resume-table-head,
  .resume-career-main-row {
    min-width: 780px;
  }

  .resume-career-role-row {
    grid-template-columns: 130px minmax(0, 1fr);
    min-width: 780px;
  }

  .intro-highlight-grid {
    grid-template-columns: 1fr;
  }

  .intro-highlight-grid article {
    min-height: 0;
  }

  .intro-company-list {
    gap: 72px;
  }

  .intro-company-head {
    display: grid;
    gap: 22px;
  }

  .intro-company-head h3 {
    font-size: 40px;
  }

  .intro-company-meta {
    justify-content: flex-start;
  }

  .intro-project-head,
  .intro-metric,
  .intro-detail {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .intro-project-head h3 {
    font-size: 24px;
  }

  .intro-essay h3 {
    font-size: 29px;
  }

  .intro-essay p {
    font-size: 15px;
    line-height: 1.85;
  }

  .ai-system-map {
    padding: 30px 24px;
  }

  .ai-system-pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-metric-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-evidence-case > header {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
  }

  .ai-evidence-case h3 {
    font-size: 30px;
  }

  .ai-case-body {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .ai-case-tags {
    margin-left: 0;
  }

  .ai-surface-grid,
  .ai-method-flow {
    grid-template-columns: 1fr;
  }

  .ai-surface-grid article,
  .ai-method-flow article {
    min-height: 0;
  }

  .ai-contribution-list article {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
  }

  .ai-contribution-list article > p {
    grid-column: 2;
  }

  .page {
    padding-inline: 20px;
  }

  .page .topbar {
    display: grid;
    padding: 28px 0;
  }

  .page .topbar h1 {
    font-size: 40px;
  }

  .page .topbar-actions {
    justify-content: flex-start;
  }

  .log-filters {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .portal-footer,
  .career-site-footer {
    display: grid;
    align-content: center;
    justify-content: start;
    gap: 4px;
  }
}

@media (max-width: 430px) {
  .career-wordmark > strong {
    display: none;
  }

  .portal-account a,
  .portal-account button {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .career-mobile-menu-panel {
    right: 14px;
    left: 14px;
  }

  .login-card {
    padding: 30px 24px;
  }

  .career-hero h1,
  .portal-intro h1 {
    font-size: 40px;
  }

  .career-hero h2 {
    font-size: 29px;
  }

  .career-section-title-row h2,
  .career-section-head h2,
  .portal-section-head h2 {
    font-size: 36px;
  }
}

@media screen and (max-width: 880px) {
  .ai-print-page {
    padding: 84px 12px 40px;
  }

  .ai-pdf-sheet {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 24px 20px 18px;
  }

  .ai-pdf-identity,
  .ai-pdf-section-header,
  .ai-pdf-sheet > .pdf-section-header {
    gap: 20px;
    padding-bottom: 18px;
  }

  .ai-pdf-identity img {
    width: 64px;
    height: 76px;
  }

  .ai-pdf-statement {
    padding: 24px 0 20px;
  }

  .ai-pdf-metrics,
  .ai-pdf-case-columns,
  .ai-pdf-surface > div,
  .ai-pdf-method > div,
  .ai-pdf-contribution > div {
    grid-template-columns: 1fr;
  }

  .ai-pdf-metrics > div {
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid rgba(57, 55, 55, 0.08);
  }

  .ai-pdf-metrics > div:last-child {
    border-bottom: 0;
  }

  .ai-pdf-method article,
  .ai-pdf-contribution article {
    min-height: 0;
  }

  .ai-pdf-sheet .pdf-page-footer {
    margin-top: 24px;
  }
}

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

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

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html,
  body {
    width: 210mm;
    min-width: 210mm;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .resume-print-page,
  .intro-print-page,
  .portfolio-print-page,
  .ai-print-page {
    width: 210mm !important;
    min-width: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .print-toolbar {
    display: none !important;
  }

  .pdf-sheet {
    width: 210mm !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    break-after: page;
    page-break-after: always;
  }

  .pdf-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .pdf-sheet + .pdf-sheet {
    margin-top: 0 !important;
  }
}
