@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #eef2f6;
  --bg-deep: #e4eaf1;
  --surface: #f8fafc;
  --surface-soft: rgba(248, 250, 252, .78);
  --ink: #152131;
  --muted: #536477;
  --quiet: #536477;
  --line: rgba(43, 69, 98, .16);
  --line-strong: rgba(43, 69, 98, .3);
  --blue: #4778ad;
  --blue-strong: #315f91;
  --blue-soft: #dce8f4;
  --focus: #0f66c2;
  --shadow: 0 18px 40px rgba(22, 32, 44, .13);
  --shadow-small: 0 8px 20px rgba(22, 32, 44, .10);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[data-theme="night"] {
  color-scheme: dark;
  --bg: #0d141d;
  --bg-deep: #080e15;
  --surface: #151f2b;
  --surface-soft: rgba(21, 31, 43, .86);
  --ink: #f1f5f9;
  --muted: #b1c0cf;
  --quiet: #91a4b6;
  --line: rgba(180, 204, 229, .14);
  --line-strong: rgba(180, 204, 229, .28);
  --blue: #82b2e5;
  --blue-strong: #a4caf0;
  --blue-soft: #1b3147;
  --focus: #8bc2ff;
  --shadow: 0 18px 42px rgba(0, 0, 0, .34);
  --shadow-small: 0 10px 22px rgba(0, 0, 0, .24);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--section-offset, 96px); }
body { margin: 0; min-width: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 78% 2%, rgba(82, 130, 180, .15), transparent 30rem), linear-gradient(180deg, var(--bg), var(--bg-deep)); font-size: 16px; line-height: 1.6; letter-spacing: -.01em; }
::selection { color: var(--surface); background: var(--blue-strong); }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; border-radius: 12px; color: var(--surface); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 48px; }
.site-header { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 58px; margin-bottom: 36px; padding: 7px 10px 7px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); box-shadow: var(--shadow-small); backdrop-filter: blur(16px) saturate(130%); }
.nav-portrait, .mobile-nav { display: none; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 760; text-decoration: none; letter-spacing: -.03em; }
.nav { position: absolute; left: 50%; display: flex; align-items: center; gap: 6px; transform: translateX(-50%); }
.nav a, .project-menu summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); border-radius: 999px; text-decoration: none; }
.project-menu { position: relative; }
.project-menu summary { cursor: pointer; list-style: none; }
.project-menu summary::-webkit-details-marker { display: none; }
.project-menu summary::after { content: "⌄"; margin-left: 7px; font-size: .9rem; }
.project-menu-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: grid; width: max-content; min-width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-small); }
.project-menu-menu a { padding: 9px 12px; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) { .nav a:hover, .project-menu summary:hover, .project-menu-menu a:hover { color: var(--ink); background: var(--blue-soft); } }
.theme-toggle { display: inline-grid; place-items: center; width: 44px; min-height: 44px; margin-left: auto; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); background: var(--surface); cursor: pointer; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="night"] .theme-toggle .icon-sun { display: none; }
html[data-theme="night"] .theme-toggle .icon-moon { display: block; }
.theme-toggle:active, .button:active { transform: scale(.97); }
main { display: grid; gap: 104px; }
.chapter { scroll-margin-top: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr); gap: 32px 64px; align-items: center; padding: 28px 22px 24px; }
.hero-copy { min-width: 0; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { max-width: none; margin: 0; font-size: clamp(2rem, 4.3vw, 3.7rem); line-height: 1.08; letter-spacing: -.04em; white-space: nowrap; }
.role-summary { margin: 22px 0 0; color: var(--blue-strong); font-size: 1.18rem; font-weight: 740; }
.lede { max-width: 58ch; margin: 16px 0 0; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.24rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 720; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.button-primary { color: #fff; border-color: var(--blue-strong); background: var(--blue-strong); }
html[data-theme="night"] .button-primary { color: #0a1119; }
.button-secondary { color: var(--ink); background: transparent; }
@media (hover: hover) and (pointer: fine) { .button:hover { transform: translateY(-1px); box-shadow: var(--shadow-small); } }
.proof-line { grid-column: 1 / -1; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: none; margin: 8px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line-strong); }
.proof-line div { min-width: 0; }
.proof-line dt { color: var(--ink); font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 780; line-height: 1; letter-spacing: -.04em; }
.proof-line dd { margin: 7px 0 0; color: var(--muted); font-size: .87rem; line-height: 1.35; }
.hero-visual { min-width: 0; }
.portrait-frame { display: block; width: min(100%, 260px); margin: 0 auto; padding: 12px; border: 1px solid rgba(255,255,255,.38); border-radius: 42px; background: linear-gradient(155deg, rgba(255,255,255,.56), rgba(91,128,168,.12)); box-shadow: var(--shadow); }
.portrait-frame img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 52% 30%; border-radius: 32px; }
.featured-chapter { display: grid; grid-template-columns: minmax(170px, .42fr) minmax(0, 1.58fr); gap: clamp(32px, 7vw, 100px); padding: 52px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.chapter-intro { color: var(--muted); font-size: .94rem; }
.chapter-intro strong { display: block; margin-bottom: 28px; color: var(--blue-strong); }
.qa-body h2, .section-heading h2, .contact h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.qa-body > p { max-width: 66ch; margin: 20px 0 0; color: var(--muted); font-size: 1.08rem; }
.qa-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.qa-evidence li { padding: 20px 20px 0 0; color: var(--muted); }
.qa-evidence li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.qa-evidence strong { display: block; margin-bottom: 6px; color: var(--ink); }
.impact-story { max-width: 75ch; margin: 26px 0 0 !important; padding: 18px 0 4px; border-top: 1px solid var(--line-strong); }
.impact-story strong { color: var(--ink); }
.evidence-tags { display: flex; flex-wrap: wrap; align-content: start; gap: 8px; }
.evidence-tags span { padding: 5px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; font-size: .78rem; }
.qa-body > .evidence-tags { margin-top: 18px; }
.evidence-tags.is-enhanced span:nth-of-type(n + 5) { display: none; }
.evidence-tags.is-enhanced.is-expanded span { display: inline-block; }
.skills-more-button { min-width: 44px; min-height: 44px; padding: 4px 9px; color: var(--blue-strong); border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; font-size: .78rem; font-weight: 720; cursor: pointer; }
.section-heading { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin-top: 0; }
.section-heading > p { max-width: 62ch; margin: 0; color: var(--muted); }
.evidence-list { border-top: 1px solid var(--line-strong); }
.evidence-row { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr) minmax(150px, .55fr); gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.evidence-meta { color: var(--quiet); font-size: .9rem; }
.evidence-main h3, .project-card h3 { margin: 0 0 9px; font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 760; letter-spacing: -.035em; }
.evidence-main p, .project-card > p { max-width: 68ch; margin: 0; color: var(--muted); }
.evidence-main p + p { margin-top: 12px; }
.evidence-row .evidence-tags { align-content: start; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-soft); box-shadow: var(--shadow-small); }
.project-card-wide { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(180px, .6fr); gap: 24px; grid-column: 1 / -1; align-items: start; }
.project-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: center; min-width: 0; min-height: 0; margin: -24px -24px 22px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--bg-deep); }
.project-media img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; background: var(--bg-deep); }
.project-media-portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.project-media-portrait img { width: 100%; height: auto; }
.project-media-landscape { position: relative; display: block; aspect-ratio: 2280 / 1652; }
.project-media-landscape img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.project-media-video { display: block; position: relative; aspect-ratio: 1380 / 1000; background: #000; }
.project-media-video video { display: block; width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.preview-frame { opacity: 0; transition: opacity 600ms ease-in-out; }
.preview-frame.is-current { opacity: 1; }
.preview-toggle { position: absolute; right: 10px; bottom: 10px; z-index: 2; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); background: var(--surface); font-size: .78rem; cursor: pointer; }
.preview-toggle:not(:focus-visible) { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.project-subtitle { display: block; margin-top: 7px; font-size: 1rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--muted); }
.project-card:not(.project-card-wide) { display: flex; flex-direction: column; }
.project-card:not(.project-card-wide) .project-media { flex-shrink: 0; }
.project-card:not(.project-card-wide) .evidence-links { margin-top: auto; padding-top: 18px; }
.project-meta { margin: 0 0 12px; color: var(--blue-strong); font-size: .78rem; font-weight: 760; letter-spacing: .02em; }
.evidence-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.evidence-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue-strong); font-weight: 700; }
.project-card .evidence-tags { margin-top: 18px; }
.contact-chapter { display: grid; gap: 24px; }
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); gap: 48px; align-items: center; padding: clamp(34px, 6vw, 64px); border-radius: var(--radius-xl); color: #f4f8fc; background: #274662; box-shadow: var(--shadow); }
html[data-theme="night"] .contact { color: var(--ink); background: #172b3e; }
.contact p { max-width: 62ch; margin: 16px 0 0; color: #d7e3ee; }
.contact .button-primary { color: #183148; border-color: #f4f8fc; background: #f4f8fc; }
.contact-links { display: grid; justify-items: center; gap: 10px; text-align: center; color: #d7e3ee; }
.contact-links a:first-child { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.contact-links .linkedin-button { display: inline-flex; align-items: center; justify-content: center; width: 153px; min-height: 44px; overflow: hidden; line-height: 0; }
.contact-links .linkedin-button img { width: 100%; height: 35px; object-fit: fill; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 12px 4px 0; color: var(--quiet); font-size: .88rem; }
footer a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { width: min(62%, 320px); margin: 0 auto; }
  .featured-chapter, .section-heading, .contact { grid-template-columns: 1fr; }
  .evidence-row { grid-template-columns: minmax(120px, .4fr) minmax(0, 1.6fr); }
  .evidence-row .evidence-tags { grid-column: 2; }
}
@media (max-width: 1000px) {
  .site-header { display: flex; gap: 8px; min-height: 60px; padding: 6px 8px 6px 10px; border-radius: 999px; }
  .brand { min-width: 0; gap: 10px; font-size: .94rem; white-space: nowrap; }
  .nav-portrait { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex-shrink: 0; }
  .site-header > .nav { display: none; }
  .site-header > .theme-toggle { display: none; }
  .mobile-menu-tools { display: flex; justify-content: flex-end; padding: 6px 4px 0; }
  .mobile-menu-tools .theme-toggle { margin-left: 0; }
  .site-header > .brand { font-size: .86rem; gap: 8px; }
  .mobile-nav { display: block; margin-left: auto; order: 2; }
  .mobile-nav > summary { display: grid; place-items: center; width: 44px; min-height: 44px; border-radius: 50%; list-style: none; cursor: pointer; }
  .mobile-nav > summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] > summary { background: var(--blue-soft); }
  .mobile-nav-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 10px; border: 1px solid var(--line-strong); border-radius: 24px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-small); max-height: calc(100dvh - 100px); overflow-y: auto; }
  .mobile-nav-panel nav { display: grid; }
  .mobile-nav-panel a, .mobile-theme-toggle { display: flex; align-items: center; min-height: 48px; padding: 10px 16px; border-radius: 14px; font-size: 1rem; text-decoration: none; }
  .mobile-nav-panel a:hover { background: var(--blue-soft); }
  .mobile-theme-toggle { width: 100%; border: 0; margin-top: 6px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: var(--section-offset, 92px); }
  .shell { width: min(100% - 20px, 1160px); padding-top: 10px; }
  main { gap: 68px; }
  .chapter { scroll-margin-top: 0; }
  .hero { gap: 0; padding: 28px 8px 0; text-align: left; }

  h1 { max-width: none; font-size: clamp(1.7rem, 7.4vw, 2.5rem); }
  .role-summary { font-size: 1rem; margin-top: 14px; }
  .lede { margin-left: 0; margin-right: 0; font-size: 1.06rem; }
  .hero .actions { justify-content: flex-start; flex-wrap: nowrap; gap: 8px; }
  .hero .actions .button { min-width: 0; padding: 0 12px; font-size: .83rem; white-space: nowrap; }
  .hero-visual { display: none; }
  .proof-line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; margin-top: 28px; text-align: left; }
  .proof-line dd { margin: 7px 0 0; }
  .featured-chapter { gap: 28px; padding: 36px 0; }
  .qa-body h2, .section-heading h2, .contact h2 { font-size: clamp(2.15rem, 11vw, 3.5rem); }
  .qa-evidence { grid-template-columns: 1fr; }
  .qa-evidence li { padding: 16px 0; }
  .qa-evidence li + li { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .section-heading { gap: 14px; margin-bottom: 24px; }
  .evidence-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .evidence-row .evidence-tags { grid-column: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-wide { grid-column: auto; grid-template-columns: 1fr; }
  .project-card { padding: 20px; }
  .project-media { margin: -20px -20px 20px; }
  .project-media-portrait, .project-media-landscape { height: auto; padding: 0; }
  .contact { gap: 22px; padding: 26px 22px; border-radius: 26px; }
  .contact { text-align: center; }
  .contact .actions { justify-content: center; }
  footer { align-items: center; flex-direction: column; gap: 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (prefers-reduced-transparency: reduce) {
  .site-header, .project-card { background: var(--surface); backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .site-header, .project-card { border-color: currentColor; }
  .site-header { background: var(--surface); backdrop-filter: none; }
}
@media print {
  html { scroll-behavior: auto; }
  .site-header { position: static; top: auto; box-shadow: none; backdrop-filter: none; }
  .shell { width: auto; padding: 0; }
  .project-card, .contact { box-shadow: none; }
}
