
:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #ffffff;
  --line: #e2e8f0;
  --blue: #0284c7;
  --blue-dark: #0369a1;
  --blue-soft: #f0f9ff;
  --green: #10b981;
  --violet: #6366f1;
  --surface: #ffffff;
  --surface-raised: #f8fafc;
  --surface-deep: #f1f5f9;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--soft); }
body { margin: 0; color: var(--ink); background: #ffffff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif; line-height: 1.7; }
body::before { display: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
::selection { color: #ffffff; background: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--blue); color: #06131a; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 14px; }
.wrap { width: min(1220px, calc(100% - 44px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 26px; width: 100%; max-width: none; margin: 0; padding: 13px max(22px, calc((100vw - 1220px) / 2)); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.025em; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #bae6fd; border-radius: 12px; background: #f0f9ff; color: #0284c7; font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.05em; box-shadow: inset 0 0 18px rgba(85,215,244,.08); }
.brand-name { font-size: 14px; }
.brand-sub { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; color: #475569; font-size: 12px; font-weight: 700; }
.site-nav a { padding: 7px 9px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; white-space: nowrap; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: #0284c7; border-color: #bae6fd; background: #f0f9ff; }
.pdf-button { padding: 8px 12px; border: 1px solid rgba(85,215,244,.35); border-radius: 9px; background: rgba(85,215,244,.12); color: #0284c7; font-size: 12px; font-weight: 800; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.pdf-button:hover { background: rgba(85,215,244,.2); transform: translateY(-1px); }
main { min-height: 68vh; }
#app { overflow: clip; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.045em; line-height: 1.18; }
h1 { font-size: clamp(42px, 5.6vw, 76px); }
h2 { font-size: clamp(28px, 3vw, 42px); }
h3 { font-size: 22px; }
.eyebrow, .panel-label, .case-label, .proof-label { color: #0284c7; font: 800 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--blue); box-shadow: 0 0 10px rgba(85,215,244,.6); }
.hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); grid-template-rows: auto auto; gap: 18px 36px; align-items: center; min-height: 560px; padding-top: 68px; padding-bottom: 70px; }
.hero-copy { min-width: 0; grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.hero-copy .eyebrow { max-width: 46ch; color: #0284c7; font-size: 10px; line-height: 1.8; }
.hero-copy h1 { max-width: 12ch; margin: 0 0 20px; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.04; }
.hero-lead { max-width: 58ch; margin: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { border-color: rgba(85,215,244,.55); transform: translateY(-2px); }
.button.primary { border-color: #0284c7; background: var(--blue); color: #04131a; box-shadow: 0 8px 24px rgba(85,215,244,.15); }
.button.primary:hover { border-color: #0369a1; background: #0369a1; }
.button.secondary { border-color: #cbd5e1; background: #ffffff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.button.secondary:hover { background: var(--surface-raised); }
.profile-photo { background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; grid-column: 2; grid-row: 1; justify-self: center; align-self: end; display: flex; flex-direction: column; width: min(100%, 210px); min-height: 0; height: auto; margin: 0; overflow: hidden; border: 1px solid rgba(85,215,244,.26); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.profile-photo::after { display: none; }
.profile-photo img { background: #ffffff; display: block; display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 266 / 341; object-fit: contain; object-position: center; background: #fff; filter: none; }
.profile-photo figcaption { position: static; z-index: auto; left: auto; right: auto; bottom: auto; padding: 10px 12px; border: 0; border-top: 1px solid rgba(85,215,244,.18); background: linear-gradient(135deg, #f8fbfc, #edf3f5); color: #17212a; font-size: 11px; font-weight: 800; line-height: 1.5; backdrop-filter: none; }
.profile-photo figcaption::after { content: "AI·AX DEVELOPER"; display: block; margin-top: 3px; color: #0284c7; font: 700 8px/1.5 ui-monospace, monospace; letter-spacing: .1em; }
.hero-panel { display: block; position: relative; grid-column: 2; grid-row: 2; align-self: start; padding: 24px 22px; border: 1px solid var(--line); border-radius: 18px; background: #ffffff; box-shadow: var(--shadow); }
.hero-panel::before { content: "CORE FOCUS"; display: inline-block; margin: 0 0 18px; padding: 5px 8px; border: 1px solid rgba(85,215,244,.28); border-radius: 999px; background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; color: #0284c7; font: 700 8px/1.4 ui-monospace, monospace; letter-spacing: .12em; }
.panel-label { margin: 0 0 7px; color: var(--muted); }
.hero-panel h2 { margin: 0 0 19px; font-size: clamp(21px, 2vw, 27px); line-height: 1.34; }
.clean-list { margin: 0; padding: 0; list-style: none; }
.clean-list li { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid rgba(123,153,177,.18); }
.clean-list li span { color: #0284c7; font: 800 12px/1.5 ui-monospace, monospace; }
.clean-list li small { color: var(--muted); font-size: 11px; }
.section { padding-top: 55px; padding-bottom: 32px; scroll-margin-top: 92px; }
.section-heading { margin-bottom: 21px; }
.section-heading h2 { margin: 0; }
.section-heading.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-note { max-width: 440px; margin: 0 0 3px; color: var(--muted); font-size: 13px; text-align: right; }
.about-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.large-copy { position: relative; min-height: 172px; margin: 0; padding: 42px 18px 19px; border: 1px solid var(--line); border-radius: 15px; background: #ffffff; color: var(--ink); font-size: 13px; line-height: 1.85; }
.large-copy::before { content: "ABOUT"; position: absolute; top: 16px; left: 18px; color: #0284c7; font: 800 9px/1.4 ui-monospace, monospace; letter-spacing: .1em; }
.strength-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.strength-strip span { padding: 6px 10px; border: 1px solid rgba(85,215,244,.19); border-radius: 999px; background: rgba(85,215,244,.06); color: #b4eaf4; font-size: 10px; font-weight: 700; }
.experience-card { padding: 24px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: var(--radius); background: #ffffff; box-shadow: var(--shadow); }
.experience-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(124,155,180,.18); }
.experience-head h3 { margin: 0 0 4px; font-size: 20px; }
.experience-head p { margin: 0; color: var(--muted); font-size: 12px; }
.project-date { color: #0284c7; font: 700 10px/1.5 ui-monospace, monospace; white-space: nowrap; }
.experience-summary { max-width: 78ch; margin: 18px 0; color: #c4cfdb; font-size: 14px; }
.experience-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(250px,.85fr); gap: 12px; }
.experience-grid > div, .experience-workflow { padding: 16px; border: 1px solid rgba(124,155,180,.14); border-radius: 12px; background: rgba(7,13,19,.55); }
.case-label { display: block; margin-bottom: 9px; color: #0284c7; font-size: 9px; }
.experience-list, .project-list { margin: 0; padding: 0; list-style: none; }
.experience-list li, .project-list li { padding: 8px 0; border-bottom: 1px solid rgba(124,155,180,.12); color: #334155; font-size: 12px; }
.experience-list li:last-child, .project-list li:last-child { border-bottom: 0; }
.experience-workflow { color: var(--green); font: 700 11px/1.8 ui-monospace, monospace; }
.stack-list { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-item, .tag { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.035); color: #c4d0de; font: 700 9px/1.4 ui-monospace, monospace; }
.tag.accent { border-color: rgba(85,215,244,.28); background: rgba(85,215,244,.09); color: #0284c7; }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.project-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 19px; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: var(--radius); background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow); box-shadow: 0 18px 48px rgba(0,0,0,.19); }
.project-card::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: linear-gradient(90deg, transparent, #38bdf8, transparent); }
.project-card.featured { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); align-items: start; gap: 14px 21px; padding: 21px; }
.project-image { position: relative; display: block; min-width: 0; height: 218px; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 13px; background: var(--surface-deep); text-decoration: none; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.project-image::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(4,9,14,.78)); }
.project-image span { position: absolute; z-index: 1; right: 12px; bottom: 10px; color: #f2fbff; font-size: 10px; font-weight: 800; }
.project-image:hover img { transform: scale(1.035); filter: saturate(1.12); }
.project-card.featured > .project-image { grid-column: 1; grid-row: 1 / span 4; height: 100%; min-height: 430px; }
.project-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.project-number { display: inline-grid; place-items: center; min-width: 29px; height: 25px; padding: 0 5px; border: 1px solid rgba(176,154,255,.28); border-radius: 7px; background: rgba(176,154,255,.1); color: var(--violet); font: 800 10px/1 ui-monospace, monospace; }
.project-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.project-header h3, .project-card > h3 { margin: 0 0 6px; font-size: 22px; }
.project-header p, .project-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.project-card.featured .project-header { gap: 10px; }
.project-date { flex: 0 0 auto; }
.case-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.case-grid > div { min-width: 0; padding: 12px; border: 1px solid rgba(124,155,180,.13); border-radius: 10px; background: rgba(5,10,15,.42); }
.case-grid .case-label { margin-bottom: 5px; }
.case-grid p { margin: 0; color: #b6c3d0; font-size: 10px; line-height: 1.7; }
.project-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 3px; }
.project-footer > span { display: flex; flex-wrap: wrap; gap: 5px; }
.link-row, .project-card-links, .aside-links { display: flex; flex-wrap: wrap; gap: 7px; }
.link-row a, .project-card-links a, .aside-links a, .text-link { display: inline-flex; align-items: center; gap: 4px; padding: 7px 9px; border: 1px solid rgba(85,215,244,.18); border-radius: 8px; background: rgba(85,215,244,.055); color: #0284c7; font-size: 10px; font-weight: 750; text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.link-row a:hover, .project-card-links a:hover, .aside-links a:hover, .text-link:hover { border-color: rgba(85,215,244,.55); background: rgba(85,215,244,.13); }
.project-list { display: grid; gap: 2px; }
.project-list li { padding: 8px 10px; border: 0; border-left: 2px solid rgba(85,215,244,.44); background: rgba(7,13,19,.4); }
.project-list li strong { color: #0284c7; }
.project-proof { margin: 0; padding: 12px; border: 1px solid rgba(129,230,178,.14); border-radius: 10px; background: rgba(129,230,178,.045); color: #b6d6c5; font-size: 10px; line-height: 1.7; }
.card-action { margin-top: auto; }
.project-card-links { padding-top: 10px; border-top: 1px solid rgba(124,155,180,.12); }
.evidence-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.evidence-card { position: relative; padding: 20px; border: 1px solid var(--line); border-top: 2px solid var(--blue); border-radius: 14px; background: #ffffff; }
.evidence-card:nth-child(2) { border-top-color: var(--violet); }
.evidence-card:nth-child(3) { border-top-color: var(--green); }
.evidence-index { color: #0284c7; font: 800 10px/1.5 ui-monospace, monospace; letter-spacing: .1em; }
.evidence-card:nth-child(2) .evidence-index { color: var(--violet); }
.evidence-card:nth-child(3) .evidence-index { color: var(--green); }
.evidence-card h3 { margin: 9px 0; font-size: 19px; }
.evidence-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.proof-strip { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; margin-top: 14px; }
.proof-strip > div { min-width: 0; padding: 15px; border: 1px solid rgba(124,155,180,.17); border-radius: 12px; background: rgba(16,24,34,.72); }
.proof-label { display: block; margin-bottom: 6px; color: var(--muted); }
.proof-strip strong { display: block; color: #dbe5ed; font-size: 11px; line-height: 1.75; }
.proof-list { display: flex; flex-direction: column; gap: 3px; }
.proof-list span::before { content: "↳ "; color: #0284c7; }
.closing { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: 8px 28px; align-items: center; margin-top: 48px; margin-bottom: 72px; padding: 31px; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: radial-gradient(ellipse at 12% 10%, rgba(54,169,198,.10), transparent 42%), linear-gradient(135deg, #111113, #080809); box-shadow: var(--shadow); }
.closing::after { content: "OPEN TO TECHNICAL COLLABORATION"; position: absolute; right: 24px; bottom: 16px; color: rgba(85,215,244,.42); font: 800 8px/1 ui-monospace, monospace; letter-spacing: .15em; }
.closing .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.closing h2 { max-width: 17ch; margin: 0; font-size: clamp(26px,3vw,38px); }
.closing > p:not(.eyebrow):not(.closing-note) { grid-column: 2; grid-row: 2; margin: 0; color: var(--muted); font-size: 13px; }
.closing-note { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid rgba(124,155,180,.17); color: #b8c7d4; font-size: 11px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 23px 0 30px; border-top: 1px solid rgba(124,155,180,.17); color: var(--muted); font-size: 11px; }
/* Project detail pages */
.case-hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.65fr); align-items: center; gap: 36px; padding-top: 56px; padding-bottom: 30px; }
.back-link { display: inline-flex; margin-bottom: 24px; color: #0284c7; font-size: 11px; font-weight: 800; text-decoration: none; }
.case-hero h1 { max-width: 18ch; margin: 0 0 14px; font-size: clamp(38px,5vw,62px); }
.case-summary { max-width: 68ch; margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.case-meta, .aside-card { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #ffffff; }
.case-meta > strong { display: block; margin: 0 0 20px; font-size: 14px; }
.case-meta .stack-list { margin-top: 8px; }
.case-cover { margin-top: 16px; margin-bottom: 30px; }
.case-cover img { width: 100%; max-height: 510px; object-fit: cover; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 18px; }
.case-cover figcaption { margin-top: 8px; color: var(--muted); font-size: 10px; }
.case-gallery { margin-top: 12px; margin-bottom: 34px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.gallery-grid img { width: 100%; max-height: 420px; object-fit: cover; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 14px; }
.case-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; align-items: start; gap: 23px; padding-bottom: 20px; }
.case-main { min-width: 0; }
.case-block { margin-bottom: 19px; padding: 21px; border: 1px solid rgba(124,155,180,.17); border-radius: 15px; background: rgba(16,24,34,.7); }
.case-block .section-heading { margin-bottom: 14px; }
.case-block .section-heading h2 { font-size: 25px; }
.case-copy, .decision-grid p, .implementation-list p, .subproject-card p, .aside-card p { margin: 0; color: #334155; font-size: 12px; line-height: 1.85; }
.decision-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.decision-grid article, .subproject-card { padding: 14px; border: 1px solid rgba(124,155,180,.15); border-radius: 11px; background: rgba(17, 24, 39, 0.7); }
.implementation-list { display: grid; gap: 9px; }
.implementation-list article { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 13px; border: 1px solid rgba(124,155,180,.14); border-radius: 11px; background: rgba(17, 24, 39, 0.7); }
.implementation-list h3 { margin: 0 0 5px; font-size: 14px; }
.step-number { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(85,215,244,.25); border-radius: 9px; background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; color: #0284c7; font: 800 10px/1 ui-monospace, monospace; }
.subproject-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.subproject-card h3 { margin: 0 0 8px; font-size: 17px; }
.text-link { margin-top: 12px; }
.private-note { display: inline-block; margin-top: 12px; color: var(--muted); font-size: 10px; }
.evidence-list, .result-list, .limitation-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.evidence-list li, .result-list li, .limitation-list li { position: relative; padding: 11px 13px 11px 31px; border: 1px solid rgba(124,155,180,.15); border-radius: 10px; background: rgba(17, 24, 39, 0.7); color: #c7d2dd; font-size: 12px; }
.evidence-list li::before, .result-list li::before, .limitation-list li::before { position: absolute; left: 12px; top: 10px; color: #0284c7; content: "✓"; font-weight: 900; }
.result-block { border-color: rgba(129,230,178,.22); }
.result-block .section-heading .eyebrow { color: var(--green); }
.result-list li::before { color: var(--green); }
.limitation-block { border-color: rgba(176,154,255,.2); }
.limitation-list li::before { color: var(--violet); content: "↳"; }
.case-aside { position: sticky; top: 86px; display: grid; gap: 11px; }
.aside-card .case-label { margin-bottom: 12px; }
.aside-links { flex-direction: column; align-items: stretch; }
.aside-links a { justify-content: space-between; }
.case-nav { display: flex; gap: 9px; overflow-x: auto; padding-top: 18px; padding-bottom: 48px; }
.case-nav a { display: flex; flex: 1 0 180px; align-items: center; gap: 9px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(16,24,34,.66); color: var(--muted); font-size: 10px; font-weight: 750; text-decoration: none; }
.case-nav a span { color: #0284c7; font: 800 9px/1 ui-monospace, monospace; }
.case-nav a.active, .case-nav a:hover { border-color: rgba(85,215,244,.42); color: var(--ink); }
.page-error { padding: 22px; border: 1px solid #714753; border-radius: 14px; background: #21151a; color: #ffd8df; }
/* English CV */
.cv-page { color: var(--ink); }
.cv-hero { border-color: var(--line) !important; }
.cv-role { color: var(--blue) !important; }
.cv-contact a, .cv-links a { color: var(--blue) !important; }
.cv-summary, .cv-list { color: var(--muted) !important; }
.cv-entry { padding: 16px; border: 1px solid rgba(124,155,180,.17); border-radius: 12px; background: rgba(16,24,34,.68); }
.cv-section h2 { border-color: var(--line) !important; }
.cv-entry-head h3 { color: var(--ink); }
.cv-tags span, .cv-tags a { display: inline-flex; margin: 3px 5px 3px 0; padding: 4px 8px; border: 1px solid rgba(85,215,244,.18); border-radius: 7px; background: rgba(85,215,244,.055); color: #b4eaf4; font-size: 10px; text-decoration: none; }
.cv-footer { color: var(--muted); }
@media (max-width: 1060px) {
  .site-header { gap: 12px; }
  .site-nav { gap: 2px; font-size: 11px; }
  .site-nav a { padding: 6px 7px; }
  .hero { grid-template-columns: minmax(0,1.15fr) minmax(250px,.85fr); min-height: 0; padding-top: 55px; }
  .hero-copy { grid-column: 1; grid-row: 1 / span 2; }
  .profile-photo { background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow); grid-column: 2; grid-row: 1; min-height: 0; }
  .hero-panel { grid-column: 2; grid-row: 2; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 30px, 620px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 10px; padding: 11px 15px; }
  .site-nav { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 0 0 4px; scrollbar-width: thin; }
  .site-nav a, .pdf-button { flex: 0 0 auto; }
  .hero { grid-template-columns: 1fr; gap: 15px; padding-top: 42px; padding-bottom: 40px; }
  .hero-copy, .profile-photo, .hero-panel { grid-column: 1; grid-row: auto; }
  .hero-copy h1 { max-width: 14ch; font-size: clamp(39px, 11vw, 62px); }
  .hero-lead { font-size: 14px; }
  .profile-photo { background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; align-self: start; justify-self: center; width: min(100%, 230px); min-height: 0; max-height: none; height: auto; }
  .profile-photo img { background: #ffffff; display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 266 / 341; object-fit: contain; object-position: center; }
  .profile-photo::after { display: none; }
  .profile-photo figcaption { position: static; left: auto; right: auto; bottom: auto; padding: 10px 12px; }
  .hero-panel { padding: 20px; }
  .section { padding-top: 37px; padding-bottom: 20px; }
  .section-heading.split-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .section-note { text-align: left; }
  .about-grid, .experience-grid, .project-grid, .evidence-grid, .proof-strip, .decision-grid, .subproject-grid, .gallery-grid { grid-template-columns: 1fr; }
  .large-copy { min-height: 0; }
  .experience-head { flex-direction: column; gap: 7px; }
  .project-card { padding: 15px; border-radius: 16px; }
  .project-card.featured { display: flex; padding: 15px; }
  .project-card.featured > .project-image { height: 250px; min-height: 0; }
  .project-image { height: 205px; }
  .project-header { flex-direction: column; gap: 7px; }
  .case-grid { grid-template-columns: 1fr; }
  .project-footer { align-items: flex-start; flex-direction: column; }
  .closing { grid-template-columns: 1fr; margin-top: 32px; margin-bottom: 42px; padding: 23px 18px 34px; }
  .closing .eyebrow, .closing h2, .closing > p:not(.eyebrow):not(.closing-note), .closing-note { grid-column: 1; grid-row: auto; }
  .closing-note { margin-top: 7px; }
  .closing::after { right: 16px; bottom: 13px; font-size: 7px; }
  .site-footer { flex-direction: column; gap: 4px; }
  .case-hero { grid-template-columns: 1fr; gap: 17px; padding-top: 36px; }
  .case-layout { grid-template-columns: 1fr; }
  .case-aside { position: static; }
  .case-block { padding: 16px; }
  .case-nav { padding-bottom: 30px; }
  .cv-actions { justify-content: flex-start !important; margin-top: 14px !important; }
  .cv-entry-head { align-items: flex-start !important; flex-direction: column !important; gap: 3px !important; }
}
@media (max-width: 420px) {
  .hero-copy h1 { font-size: 38px; }
  .profile-photo { background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow); width: min(100%, 215px); }
  .profile-photo figcaption { padding: 9px 10px; font-size: 10px; }
  .actions .button { flex: 1 1 auto; }
  .project-card.featured > .project-image { height: 210px; }
  .case-nav a { flex-basis: 155px; }
}
@media print {
  :root { color-scheme: light; --ink: #111827; --muted: #4b5563; --soft: #fff; --line: #d1d5db; --blue: #0e7490; --blue-dark: #0e7490; --blue-soft: #ecfeff; --surface: #fff; --surface-raised: #f3f4f6; }
  body { color: #111827; background: #fff; }
  body::before, .site-nav, .pdf-button, .actions, .project-card-links, .case-aside, .case-nav { display: none !important; }
  .site-header { position: static; padding-inline: 0; background: #fff; border-color: #d1d5db; }
  .wrap, .cv-page { width: 100%; }
  .hero { min-height: 0; padding: 20px 0; }
  .project-card, .experience-card, .evidence-card, .proof-strip > div, .case-block, .cv-entry { color: #111827; background: #fff; box-shadow: none; break-inside: avoid; }
  .project-card p, .case-grid p, .evidence-card p, .large-copy, .cv-summary, .cv-list { color: #374151 !important; }
  a { color: #111827; }
}


/* Goal-first AI·AX portfolio */
.about-grid.goal-layout { grid-template-columns: minmax(0,1fr); max-width: 860px; }
.project-grid.single-project { grid-template-columns: minmax(0,1fr); max-width: 980px; }

.roadmap-outcome { padding: 11px 12px; border-left: 2px solid rgba(85,215,244,.55); border-radius: 0 9px 9px 0; background: rgba(85,215,244,.045); }
.roadmap-outcome p { margin: 6px 0 0; color: #334155; font-size: 12px; line-height: 1.75; }
.roadmap-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 24px;
  padding: 24px;
}
.project-card.featured > .project-image {
  grid-column: 1;
  width: 100%;
  height: 290px;
  border-radius: 14px;
  overflow: hidden;
}
.featured-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* Light mode finishing overrides: readable surfaces, consistent portrait frame */
:root { color-scheme: light; --ink: #0f172a; --muted: #475569; --line: #e2e8f0; --blue: #0284c7; --blue-dark: #0369a1; }
body { color: var(--ink); background: #ffffff; }
.site-header { background: rgba(255,255,255,.92); border-color: var(--line); }
.site-nav a { color: #475569; }
.profile-photo { background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.profile-photo img { display: block; background: #ffffff; }
.profile-photo figcaption { border-top-color: var(--line); background: #ffffff; color: var(--ink); }
.hero-panel, .large-copy, .experience-card, .project-card, .evidence-card, .case-meta, .aside-card { color: var(--ink); background: #ffffff; border-color: var(--line); box-shadow: 0 4px 18px rgba(15,23,42,.06); }
.experience-grid > div, .experience-workflow, .case-grid > div, .project-list li, .proof-strip > div, .case-block, .decision-grid article, .subproject-card, .implementation-list article, .evidence-list li, .result-list li, .limitation-list li, .case-nav a, .cv-entry, .roadmap-outcome { background: #f8fafc; border-color: var(--line); color: var(--ink); }
.closing { background: radial-gradient(ellipse at 12% 10%, rgba(56,189,248,.08), transparent 42%), #f8fafc; border-color: var(--line); }
.page-error { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.experience-summary, .case-grid p, .project-proof, .proof-strip strong, .closing-note, .evidence-list li, .result-list li, .limitation-list li, .cv-tags span, .cv-tags a { color: #334155; }
.strength-strip span, .stack-item, .tag, .cv-tags span, .cv-tags a { color: #334155; background: #f8fafc; border-color: #e2e8f0; }
.tag.accent, .cv-tags a { color: #0369a1; background: #f0f9ff; border-color: #bae6fd; }
.button.primary { background: #0284c7; color: #ffffff; border-color: #0284c7; }
.button.primary:hover { background: #0369a1; border-color: #0369a1; }
.button.secondary { color: #0f172a; background: #ffffff; border-color: #cbd5e1; }
.project-card { box-shadow: 0 4px 18px rgba(15,23,42,.06); }
.project-card::before { background: linear-gradient(90deg, transparent, #38bdf8, transparent); }
.project-image { background: #f1f5f9; }
@media (max-width: 760px) {
  .project-card.featured { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 15px; }
  .project-card.featured > .project-image { width: 100%; height: 250px; min-height: 0; }
}

.profile-photo figcaption::after { display: none; content: none; }
