:root {
  color-scheme: dark;
  --bg: #0b1222;
  --panel: #111d32;
  --text: #f4f6fc;
  --muted: #a3afc5;
  --accent: #ff943f;
  --line: #26344d;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
a:hover { color: var(--accent); }
.wrap { max-width: 1200px; margin: auto; padding-left: 40px; padding-right: 40px; }
.site-header { height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; font-size: 18px; font-weight: 650; letter-spacing: -.6px; }
.domain { color: var(--muted); }
.brand-icon { display: block; flex-shrink: 0; width: 38px; height: 38px; margin-right: 12px; }
nav { display: flex; gap: 32px; align-items: center; color: #c5cfe0; font-size: 13px; }
.nav-github { padding: 10px 16px; border: 1px solid #465470; border-radius: 6px; }
.nav-github span { margin-left: 8px; }
.eyebrow, .project-count, .art-caption, .art-coordinate, .visual-index { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 11px; font-weight: 400; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 65px; padding: 84px 0 94px; }
.hero-copy > .eyebrow { display: flex; gap: 10px; align-items: center; line-height: 1.7; margin: 0 0 25px; }
.status-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #ff943f0d; }
.hero h1 { font-size: clamp(64px, 7.5vw, 98px); line-height: 1.02; letter-spacing: -6px; font-weight: 600; max-width: 560px; margin: 0 0 28px; text-wrap: balance; overflow-wrap: break-word; }
.hero-intro { font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 425px; margin: 0; }
.hero-actions { display: flex; gap: 28px; align-items: center; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; background: var(--accent); color: #241306; padding: 15px 20px; border-radius: 6px; font-size: 13px; font-weight: 650; transition: background .2s, transform .2s; }
.button:hover { color: #241306; background: #ffb16c; transform: translateY(-2px); }
.button span { font-size: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 15px; font-size: 13px; padding-bottom: 5px; border-bottom: 1px solid #735335; }
.hero-art { height: 380px; position: relative; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(ellipse at 50% 30%, #25497877, transparent 70%), #101b30; overflow: hidden; }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(#708bb614 1px, transparent 1px), linear-gradient(90deg, #708bb614 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(#000, transparent); }
.art-caption { position: absolute; top: 24px; left: 26px; font-size: 9px; letter-spacing: 1px; }
.code-emblem { display: flex; align-items: center; justify-content: center; gap: 24px; position: absolute; top: 65px; left: 0; width: 100%; font-family: monospace; font-size: 85px; font-weight: 200; color: #5b7eb1; }
.emblem-star { color: var(--accent); font-size: 92px; line-height: 1; transform: rotate(-12deg); }
.terminal { position: absolute; left: 26px; right: 26px; top: 206px; border: 1px solid #415676; border-radius: 9px; background: #0e182b; box-shadow: 0 14px 35px #0004; transform: rotate(-3deg); font-family: "SFMono-Regular", Consolas, monospace; }
.terminal-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { height: 6px; width: 6px; background: #526b91; border-radius: 50%; }
.terminal-dots i:first-child { background: #ff943f; }
.terminal-body { padding: 7px 16px 10px; font-size: 10px; line-height: 1.6; }
.terminal-body p { margin: 6px 0; }
.prompt { color: var(--accent); margin-right: 7px; }
.terminal-comment { color: #95a9c7; }
.cursor { display: inline-block; width: 6px; height: 11px; vertical-align: middle; background: var(--accent); }
.art-coordinate { position: absolute; bottom: 13px; right: 20px; font-size: 8px; }
section[id] { scroll-margin-top: 30px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; padding: 35px 0 30px; border-top: 1px solid var(--line); gap: 20px; }
.section-heading .eyebrow { margin: 0 0 12px; }
h2 { font-size: 34px; font-weight: 550; letter-spacing: -1.4px; line-height: 1.15; margin: 0; }
.accent { color: var(--accent); }
.project-count { padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; font-size: 10px; letter-spacing: .7px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.project { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; transition: border-color .2s, transform .2s; }
.project:hover, .project:focus-within { border-color: #bd753f; transform: translateY(-3px); }
.project-card-link { display: flex; flex-direction: column; height: 100%; }
.project-card-link:hover { color: inherit; }
.project-visual { position: relative; height: 230px; overflow: hidden; border-bottom: 1px solid var(--line); background-color: #1a2e50; background-image: linear-gradient(#c7daff08 1px, transparent 1px), linear-gradient(90deg, #c7daff08 1px, transparent 1px); background-size: 32px 32px; }
.visual-cipher { background-color: #292638; }
.visual-usage { background-color: #1c3044; }
.visual-type { background-color: #3b2b24; }
.visual-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 36px; color: #9cbbec; }
.visual-cipher .visual-art { color: #c3b7e7; }
.visual-usage .visual-art { color: #add8e1; }
.visual-type .visual-art { color: #e7cf9e; }
.visual-symbol { font-family: monospace; font-size: 85px; line-height: 1; transition: transform .3s; }
.visual-type .visual-symbol { font-family: Georgia, serif; font-size: 78px; font-style: italic; letter-spacing: -8px; }
.visual-bracket { font-family: monospace; font-size: 88px; opacity: .22; font-weight: 200; }
.project:hover .visual-symbol { transform: scale(1.08) rotate(-5deg); }
.visual-index { position: absolute; bottom: 18px; left: 23px; color: #dce5f5; font-size: 9px; letter-spacing: 1.5px; background: #0b1222b3; border-radius: 3px; padding: 5px 7px; }
.visual-open { position: absolute; right: 20px; top: 20px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #ffffff30; background: #0b122280; color: #f4f6fc; border-radius: 50%; font-size: 17px; }
.project-cover { width: 100%; height: 100%; object-fit: cover; }
.project-content { flex: 1; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.project-content .eyebrow { color: #e8b08a; font-size: 10px; letter-spacing: 1px; margin: 0 0 13px; }
.project h3 { margin: 0 0 12px; font-size: 25px; font-weight: 550; line-height: 1.25; letter-spacing: -.7px; }
.project-summary { margin: 0 0 25px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.project-read { display: flex; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; color: #c8d4e9; }
.project-read span { font-size: 16px; color: var(--accent); }
.empty-state { color: var(--muted); padding-bottom: 35px; }
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; margin-top: 85px; padding: 55px 0 65px; border-top: 1px solid var(--line); }
.about-heading .eyebrow { margin: 0 0 18px; }
.about h2 { font-size: 42px; }
.about-signature { font-family: monospace; font-size: 54px; letter-spacing: -7px; color: #6e83a5; margin-top: 26px; }
.about-signature span { color: var(--accent); }
.prose { font-size: 17px; line-height: 1.85; color: #b6c3d9; }
.about .prose { margin: 0 0 25px; }
.prose p:first-child { margin-top: 0; }
.prose h2, .prose h3 { color: var(--text); margin: 35px 0 15px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px !important; padding-bottom: 30px !important; font-size: 11px; color: var(--muted); }
.article { max-width: 800px; padding: 60px 0 90px; margin: 0 auto; }
.article > .eyebrow { margin: 55px 0 20px; color: var(--accent); }
.article h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -2.5px; line-height: 1.1; font-weight: 550; margin: 0 0 25px; overflow-wrap: break-word; }
.lede { font-size: 21px; line-height: 1.65; color: var(--muted); margin: 0 0 35px; }
.article .prose { margin: 35px 0; }
.cover { border-radius: 10px; }
.cover, .prose img { max-width: 100%; height: auto; }
.prose .richtext-image.left { float: left; margin: 0 20px 15px 0; }
.prose .richtext-image.right { float: right; margin: 0 0 15px 20px; }
.prose:after { content: ""; display: block; clear: both; }
.skip { position: absolute; top: -80px; left: 20px; background: var(--accent); color: var(--bg); padding: 15px; z-index: 10; }
.skip:focus { top: 10px; }
@media (max-width: 950px) {
  .hero { gap: 30px; padding: 65px 0; }
  .hero h1 { font-size: 76px; letter-spacing: -4px; }
  .hero-art { height: 350px; }
  .terminal { left: 15px; right: 15px; top: 180px; }
  .terminal-body { font-size: 9px; padding-left: 10px; padding-right: 10px; }
  .art-caption { left: 20px; font-size: 8px; }
  .code-emblem { top: 55px; gap: 12px; }
  .about { gap: 40px; }
}
@media (max-width: 700px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .site-header { height: 82px; }
  .wordmark { font-size: 16px; }
  .brand-icon { width: 28px; height: 28px; margin-right: 8px; }
  nav { gap: 18px; font-size: 12px; }
  .nav-github { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 50px 0; }
  .hero h1 { font-size: clamp(64px, 13vw, 90px); max-width: 500px; }
  .hero-copy > .eyebrow { font-size: 10px; letter-spacing: .7px; }
  .hero-intro { font-size: 16px; }
  .hero-actions { gap: 25px; }
  .hero-art { height: 320px; max-width: 460px; width: 100%; }
  .code-emblem { top: 45px; }
  .terminal { top: 165px; left: 25px; right: 25px; }
  .terminal-body { font-size: 10px; }
  .section-heading { padding-top: 30px; align-items: center; }
  h2 { font-size: 28px; }
  .project-count { font-size: 9px; }
  .project-grid { grid-template-columns: 1fr; gap: 22px; }
  .project-visual { height: 220px; }
  .project-content { padding: 24px; }
  .project h3 { font-size: 24px; }
  .about { grid-template-columns: 1fr; gap: 25px; margin-top: 55px; padding: 40px 0 45px; }
  .about h2 { font-size: 36px; }
  .about-signature { display: none; }
  .prose { font-size: 16px; }
  footer { flex-wrap: wrap; font-size: 10px; }
  footer span:nth-child(2) { display: none; }
  .article { padding-top: 40px; }
  .article h1 { letter-spacing: -1.5px; }
  .lede { font-size: 18px; }
}
@media (max-width: 370px) {
  nav { gap: 12px; }
  .wordmark { font-size: 14px; }
  .brand-icon { width: 26px; height: 26px; }
  .hero h1 { font-size: 60px; }
  .section-heading { flex-wrap: wrap; }
  .terminal-body { font-size: 9px; }
  .terminal { left: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Section pages share the homepage's navy and orange palette. */
nav a[aria-current="page"] { color: var(--accent); }
.hero-topics { margin: 34px 0 0; font-family: Consolas, monospace; font-size: 11px; line-height: 1.8; color: #9bafd0; }
.hero-topics span { color: var(--accent); margin: 0 5px; }
.section-page { padding: 65px 0 90px; }
.page-heading { max-width: 740px; padding-bottom: 25px; }
.page-heading .eyebrow { margin: 0 0 20px; }
.page-heading h1 { font-size: clamp(48px, 7vw, 76px); font-weight: 600; letter-spacing: -3px; line-height: 1.1; margin: 0 0 24px; }
.page-heading .lede { font-size: 18px; max-width: 600px; }
.blog-entry { border-top: 1px solid var(--line); }
.blog-entry:last-child { border-bottom: 1px solid var(--line); }
.blog-entry-link { display: flex; gap: 40px; align-items: center; justify-content: space-between; padding: 35px 0; }
.blog-entry-link:hover { color: inherit; }
.blog-entry-link:hover h2 { color: var(--accent); }
.blog-entry-copy { max-width: 700px; }
.blog-entry .eyebrow { color: #e8b08a; margin: 0 0 15px; }
.blog-entry h2 { font-size: 30px; line-height: 1.25; overflow-wrap: anywhere; }
.blog-entry p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 15px 0 22px; }
.blog-thumbnail { width: 220px; height: 150px; object-fit: cover; border-radius: 8px; }
.blog-entry-arrow { color: var(--accent); font-size: 36px; padding-right: 10px; }
.blog-empty { border: 1px solid var(--line); border-radius: 12px; padding: 40px; background: var(--panel); }
.empty-mark { color: var(--accent); font: 40px monospace; }
.blog-empty h2 { margin-top: 20px; font-size: 28px; }
.blog-empty p { color: var(--muted); line-height: 1.8; margin: 18px 0 25px; }
.pagination { display: flex; justify-content: space-between; flex-wrap: wrap; margin-top: 35px; }
.about-page { margin-top: 0; border-top: 0; padding: 90px 0 110px; min-height: 590px; }
.about-page h1 { font-size: 56px; font-weight: 600; letter-spacing: -2.5px; line-height: 1.1; margin: 0; }
.about-origin { color: var(--muted); font-size: 15px; margin-top: 24px; }
@media (max-width: 700px) {
  .site-header { height: auto; min-height: 104px; flex-wrap: wrap; gap: 20px; padding-top: 20px; padding-bottom: 18px; }
  .site-header nav { gap: 24px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-copy > .eyebrow { font-size: 9px; }
  .hero-topics { font-size: 10px; }
  .section-page { padding: 45px 0 60px; }
  .page-heading h1 { font-size: 54px; letter-spacing: -2px; }
  .page-heading .lede { font-size: 16px; }
  .blog-entry-link { gap: 20px; flex-wrap: wrap; }
  .blog-entry h2 { font-size: 26px; }
  .blog-thumbnail { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .blog-entry-arrow { display: none; }
  .blog-empty { padding: 26px; }
  .blog-empty h2 { font-size: 25px; }
  .about-page { padding: 55px 0 65px; min-height: 0; }
  .about-page h1 { font-size: 44px; }
}

main.wrap { min-height: calc(100svh - 180px); }

.profile-page { padding: 45px 0 50px; }
.profile-hero { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: center; }
.profile-copy > .eyebrow { margin: 0 0 16px; color: var(--accent); }
.profile-copy h1 { font-size: clamp(48px, 5vw, 64px); font-weight: 600; line-height: 1.08; letter-spacing: -3.5px; margin: 0 0 18px; }
.profile-intro { font-size: 23px; line-height: 1.6; letter-spacing: -.4px; color: #d6dfef; margin: 0 0 16px; }
.profile-bio { font-size: 16px; line-height: 1.85; margin: 0 0 30px; }
.profile-link-intro { color: var(--muted); font-size: 16px; margin: 0 0 12px; }
.profile-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-actions .button-secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.profile-actions .button-secondary:hover { border-color: var(--accent); color: var(--accent); }
.profile-code-link { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 16px 0 0; }
.profile-code-link .text-link { display: inline; margin-left: 3px; }
.profile-photo { margin: 0; position: relative; }
.portrait-frame { padding: 8px; background: #172540; border: 1px solid #3a4c69; border-radius: 16px; position: relative; }
.portrait-frame::before { content: ""; position: absolute; top: -6px; right: -6px; width: 70px; height: 70px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); border-radius: 0 20px 0 0; pointer-events: none; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 8 / 9; object-fit: cover; object-position: center 40%; border-radius: 9px; }
.profile-interests { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.interests-heading .eyebrow { margin: 0 0 14px; }
.interests-heading h2 { font-size: 32px; }
.interest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.interest-card { position: relative; padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.community-card { background: linear-gradient(135deg, #ff943f07, transparent 75%), var(--panel); }
.interest-card > .eyebrow { font-size: 10px; margin: 20px 0 12px; }
.interest-card h3 { font-size: 25px; font-weight: 550; letter-spacing: -.6px; margin: 0 0 16px; }
.interest-card .prose { font-size: 15px; line-height: 1.8; }
.interest-card .prose p:last-child { margin-bottom: 0; }
.interest-card .text-link { margin-top: 24px; }
.interest-icon { display: grid; place-items: center; width: 48px; height: 48px; background: #ff943f0c; border: 1px solid #ff943f26; border-radius: 12px; color: var(--accent); }
.interest-icon svg { width: 36px; height: 36px; }
.profile-contact { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 45px; padding: 35px 0 0; border-top: 1px solid var(--line); }
.profile-contact .eyebrow { margin: 0 0 12px; }
.profile-contact h2 { font-size: 30px; }
.profile-contact p:not(.eyebrow) { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.contact-email { display: flex; align-items: center; gap: 25px; font-size: 21px; color: var(--accent); border-bottom: 1px solid #ff943f55; padding: 10px 0; overflow-wrap: anywhere; }
.contact-email:hover { color: #ffb574; }
@media (max-width: 950px) {
  .profile-hero { gap: 40px; }
  .profile-intro { font-size: 20px; }
}
@media (max-width: 700px) {
  .profile-page { padding: 45px 0; }
  .profile-hero { grid-template-columns: 1fr; gap: 22px; }
  .profile-copy h1 { font-size: 52px; letter-spacing: -2.5px; }
  .profile-intro { font-size: 19px; }
  .profile-bio { font-size: 15px; }
  .profile-photo { width: 100%; max-width: 220px; }
  .portrait { aspect-ratio: 1; }
  .profile-interests { margin-top: 30px; padding-top: 24px; }
  .interests-heading h2 { font-size: 28px; }
  .interest-grid { grid-template-columns: 1fr; gap: 18px; }
  .interest-card { padding: 25px; }
  .profile-contact { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 35px; padding-top: 30px; }
  .contact-email { font-size: clamp(16px, 4.8vw, 21px); max-width: 100%; gap: 15px; }
}

.interest-grid { grid-template-columns: 1.3fr 1fr; }
.community-header { display: flex; gap: 18px; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.community-header .eyebrow { color: #e8b08a; font-size: 10px; margin: 0 0 13px; }
.community-header h3 { margin: 0; }
.community-logo-frame { flex-shrink: 0; width: 90px; padding: 6px; background: white; border-radius: 10px; }
.community-logo { display: block; max-width: 100%; width: 100%; height: auto; }
.community-join { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 25px; }
.community-join .button { font-size: 12px; padding: 13px 16px; gap: 18px; }
.qr-help { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 14px 0 0; max-width: 160px; }
.community-qr-link { display: block; flex-shrink: 0; width: 150px; padding: 4px; background: white; border-radius: 8px; }
.community-qr { display: block; width: 100%; height: auto; }
.interest-card .prose ul { margin: 18px 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.interest-card .prose li { border: 1px solid #3b4f6e; border-radius: 5px; padding: 6px 10px; font-size: 12px; color: #d4dff0; }
@media (max-width: 950px) {
  .interest-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .community-header { align-items: flex-start; }
  .community-logo-frame { width: 64px; }
  .community-header h3 { font-size: 22px; }
  .community-join { flex-wrap: wrap; align-items: flex-start; }
  .community-qr-link { width: 165px; }
  .qr-help { max-width: none; }
}

.cv-page { padding: 65px 0 80px; }
.cv-heading { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 55px; align-items: start; }
.cv-portrait { margin-top: 4px; }
.cv-portrait .portrait { aspect-ratio: 11 / 13; }
.cv-heading-copy { min-width: 0; }
.cv-heading .eyebrow { color: var(--accent); margin: 0 0 20px; }
.cv-heading h1 { font-size: clamp(42px, 6vw, 70px); font-weight: 600; letter-spacing: -3px; line-height: 1.1; margin: 0 0 20px; overflow-wrap: anywhere; }
.cv-role { font-size: 24px; color: #d7e1f2; margin: 0 0 20px; }
.cv-intro { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 650px; margin: 0 0 25px; }
.cv-contact { display: flex; gap: 12px 25px; flex-wrap: wrap; font-size: 12px; line-height: 1.7; color: #c4d1e8; }
.cv-contact a { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.cv-languages { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 14px; }
.cv-actions { margin-top: 18px; }
.cv-actions .button { display: flex; justify-content: space-between; }
.cv-sections { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin-top: 40px; flex-wrap: wrap; }
.cv-section { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 55px; padding-top: 45px; margin-top: 15px; scroll-margin-top: 25px; }
.cv-section + .cv-section { border-top: 1px solid var(--line); margin-top: 40px; }
.cv-section-label > .eyebrow { font-size: 10px; margin: 0 0 15px; }
.cv-section h2 { font-size: 26px; line-height: 1.2; }
.cv-section-label .text-link { margin-top: 22px; }
.cv-position { border-left: 1px solid #3b4f6e; padding-left: 28px; margin: 0 0 35px; position: relative; }
.cv-position::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; position: absolute; left: -4px; top: 4px; }
.cv-position > .eyebrow { color: #e8b08a; font-size: 10px; letter-spacing: .7px; line-height: 1.7; margin: 0 0 12px; }
.cv-position h3, .cv-project h3 { margin: 0 0 10px; font-size: 23px; font-weight: 550; letter-spacing: -.5px; line-height: 1.3; }
.cv-company { color: #c6d4ec; font-size: 15px; margin: 0 0 17px; }
.cv-position .prose { font-size: 14px; line-height: 1.8; }
.cv-position .prose ul { padding-left: 18px; margin: 0; }
.cv-position .prose li { margin-bottom: 7px; }
.cv-earlier, .cv-more-skills { border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.cv-earlier summary, .cv-more-skills summary { font-size: 13px; cursor: pointer; color: #d7e1f2; line-height: 1.7; }
.cv-earlier summary span { color: var(--muted); margin-left: 12px; font-size: 11px; }
.cv-earlier .cv-position { margin-top: 28px; margin-bottom: 0; }
.cv-earlier .cv-position h3 { font-size: 20px; }
.cv-skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cv-skill-group { background: var(--panel); border: 1px solid var(--line); padding: 20px; border-radius: 8px; }
.cv-skill-group h3 { font-size: 15px; font-weight: 550; margin: 0 0 20px; }
.cv-skill-group dl { margin: 0; }
.cv-skill-group dl > div { display: flex; align-items: start; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; font-size: 11px; line-height: 1.7; }
.cv-skill-group dd { margin: 0; text-align: right; color: var(--muted); min-width: 70px; }
.cv-rating-note { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 18px; }
.cv-more-skills { margin-top: 24px; }
.cv-more-skills .prose { font-size: 14px; }
.cv-more-skills .prose h3 { font-size: 17px; }
.cv-qualifications > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cv-qualifications > div:first-child { padding-top: 0; }
.cv-qualifications h3 { font-size: 16px; font-weight: 550; line-height: 1.5; margin: 0; }
.cv-qualifications p { color: var(--muted); font-size: 12px; margin: 0; text-align: right; }
.cv-project { padding: 0 0 25px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.cv-project p { color: var(--muted); font-size: 14px; line-height: 1.8; }
@media (max-width: 950px) {
  .cv-heading { grid-template-columns: 170px minmax(0, 1fr); gap: 30px; }
  .cv-section { grid-template-columns: 170px minmax(0, 1fr); gap: 30px; }
  .cv-skill-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cv-page { padding: 45px 0; }
  .cv-heading { grid-template-columns: 1fr; gap: 30px; }
  .cv-profile { width: 170px; }
  .cv-heading h1 { letter-spacing: -2px; }
  .cv-role { font-size: 20px; }
  .cv-sections { gap: 22px; }
  .cv-section { grid-template-columns: 1fr; gap: 28px; padding-top: 35px; }
  .cv-section-label h2 { font-size: 28px; }
  .cv-position { padding-left: 20px; }
  .cv-position h3 { font-size: 21px; }
  .cv-qualifications > div { flex-direction: column; gap: 8px; }
  .cv-qualifications p { text-align: left; }
}
@media print {
  :root { color-scheme: light; background: white; color: #142139; --text: #142139; --muted: #46516a; --line: #d9dfe8; --panel: white; --accent: #9c4c14; }
  .site-header, footer, .skip, .cv-actions, .cv-sections { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  main.wrap { min-height: 0; }
  .cv-page { padding: 0; }
  .cv-heading { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 25px; break-inside: avoid; }
  .cv-portrait { width: auto; padding: 4px; background: white; border-color: #d9dfe8; }
  .cv-portrait::before { display: none; }
  .cv-heading h1 { font-size: 32px; letter-spacing: -1px; }
  .cv-role { font-size: 18px; }
  .cv-intro, .cv-contact, .cv-languages, .cv-company, .cv-position .prose, .cv-project p, .cv-qualifications p, .cv-skill-group dd, .cv-rating-note { color: #46516a; }
  .cv-section { display: block; padding-top: 20px; margin-top: 15px; }
  .cv-section-label { margin-bottom: 20px; }
  .cv-section-label .eyebrow, .cv-section-label .text-link { display: none; }
  .cv-section h2 { font-size: 21px; }
  .cv-position { break-inside: avoid; }
  .cv-position h3 { font-size: 18px; }
  .cv-company { font-size: 13px; }
  .cv-skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cv-skill-group { break-inside: avoid; padding: 12px; }
  .cv-qualifications > div { break-inside: avoid; }
  .cv-earlier, .cv-more-skills { border: 0; padding: 0; }
  .cv-earlier > summary, .cv-more-skills > summary { display: none; }
  .cv-earlier > *, .cv-more-skills > * { display: block !important; }
  @page { size: A4; margin: 18mm; }
}
