:root { --ink: #172d40; --muted: #586675; --accent: #277c85; --paper: #f8f8f5; --line: #dfe4e3; --white: #fff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; }
h1 { font-size: clamp(2.45rem, 4.8vw, 4.5rem); font-weight: 650; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 620; }
h3 { font-size: 1.3rem; font-weight: 600; }
.page-width { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--ink); color: var(--white); padding: .75rem 1rem; z-index: 5; }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.brand-mark { display: flex; justify-content: center; align-items: center; width: 47px; height: 47px; border-radius: 9px; background: var(--ink); color: var(--white); font-size: 1rem; font-weight: 700; letter-spacing: -.07em; }
.brand-mark span { color: #88c4b9; }
.brand-name { font-size: 1rem; font-weight: 650; line-height: 1.4; }
.brand-name > span { display: block; color: var(--muted); font-size: .74rem; font-weight: 400; letter-spacing: .005em; }
.nav-links { display: flex; align-items: center; gap: 27px; font-size: .9rem; }
.nav-links a { text-decoration: none; padding-block: 5px; }
.nav-links a:hover, .text-link:hover { color: var(--accent); }
.nav-contact { border-bottom: 1px solid var(--ink); font-weight: 600; }
.nav-contact span { margin-left: 8px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 85px; align-items: center; padding-block: 82px 80px; }
.eyebrow { color: var(--accent); font-size: .74rem; font-weight: 650; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin-block: 20px 25px; }
.accent { color: var(--accent); }
.hero-intro { font-size: 1.18rem; color: #3a4b59; line-height: 1.65; max-width: 650px; }
.hero-intro strong { font-weight: 650; color: var(--ink); }
.hero-description { margin-top: 12px; max-width: 590px; color: var(--muted); }
.hero-actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; border-radius: 5px; padding: 12px 19px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: #264a62; }
.button span, .text-link span { font-size: 1.1rem; }
.text-link { font-size: .88rem; text-decoration: none; border-bottom: 1px solid #aab4b9; padding-block: 3px; }
.text-link span { margin-left: 7px; }
.portrait { text-align: center; background: #eeeee7; border: 1px solid #e0e1d8; border-radius: 8px; padding: 28px 27px 23px; position: relative; }
.portrait-photo { border-radius: 5px; overflow: hidden; line-height: 0; }
.portrait img { width: 100%; height: auto; display: block; }
.portrait figcaption { margin-top: 19px; }
.portrait-name { display: block; font-size: 1rem; font-weight: 650; }
.portrait-location { display: block; color: var(--muted); font-size: .8rem; }
.portrait-note { display: block; border-top: 1px solid #d7dbd2; padding-top: 13px; margin-top: 19px; color: #68746b; font-size: .7rem; }
.experience-strip { background: var(--white); border-block: 1px solid var(--line); }
.strip-content { display: grid; grid-template-columns: 1fr 1fr 1fr; padding-block: 25px; gap: 32px; }
.strip-content p + p { border-left: 1px solid var(--line); padding-left: 35px; }
.strip-content strong { display: block; font-size: 1.12rem; font-weight: 650; }
.strip-content span { display: block; color: var(--muted); font-size: .83rem; }
.section { padding-block: 80px; }
.section .eyebrow { margin-bottom: 17px; }
.about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 92px; }
.section-summary { color: var(--muted); margin-top: 23px; max-width: 340px; font-size: .97rem; }
.about-content > p { color: #485966; margin-bottom: 17px; }
.expertise-list { margin: 30px 0 0; border-top: 1px solid var(--line); }
.expertise-list > div { padding-block: 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 145px 1fr; gap: 18px; }
.expertise-list dt { font-size: .86rem; font-weight: 650; }
.expertise-list dd { margin: 0; color: var(--muted); font-size: .85rem; }
.experience-section { background: #edf1ef; border-block: 1px solid #e1e6e2; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 40px; }
.section-heading > p { color: var(--muted); font-size: .9rem; max-width: 290px; }
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d2dad5; }
.work-list li { display: grid; grid-template-columns: 112px 1fr 1fr; align-items: start; gap: 28px; padding-block: 25px; border-bottom: 1px solid #d2dad5; }
.work-period { font-size: .82rem; color: var(--muted); padding-top: 4px; }
.work-title h3 { font-size: 1.13rem; letter-spacing: -.02em; line-height: 1.4; }
.work-title p { color: var(--muted); font-size: .85rem; margin-top: 5px; }
.work-description { color: #51605b; font-size: .88rem; }
.project-list { border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 74px 1fr 125px; gap: 25px; align-items: center; padding-block: 30px; border-bottom: 1px solid var(--line); }
.project-symbol { width: 68px; height: 68px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #e3ece9; color: #3a7168; font: 1.6rem/1 ui-monospace, monospace; }
.solitaire-symbol { background: #e7e7da; display: grid; grid-template-columns: repeat(2, 13px); gap: 6px; align-content: center; }
.solitaire-symbol i { width: 13px; height: 13px; border-radius: 50%; background: #8b7849; box-shadow: inset -2px -2px 2px #726137; }
.solitaire-symbol i:first-child { grid-column: 1 / 3; justify-self: center; }
.project-status { color: #557b70; text-transform: uppercase; letter-spacing: .1em; font-size: .67rem; font-weight: 650; margin-bottom: 6px; }
.project h3 { margin-bottom: 10px; }
.project p:not(.project-status) { color: var(--muted); max-width: 715px; font-size: .92rem; }
.project-technology { font-size: .8rem; color: var(--muted); text-align: right; }
.contact-section { background: var(--ink); color: #eef3f2; padding-block: 63px; }
.contact-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.contact-section .eyebrow { color: #a2cec4; margin-bottom: 16px; }
.contact-section h2 { font-size: clamp(1.8rem, 2.7vw, 2.4rem); }
.contact-section p:not(.eyebrow) { color: #c0cdd3; font-size: .95rem; max-width: 495px; margin-top: 18px; }
.contact-links { display: flex; flex-direction: column; align-items: start; gap: 10px; min-width: 0; }
.contact-email { font-size: clamp(1rem, 1.8vw, 1.3rem); text-decoration: none; font-weight: 600; border-bottom: 1px solid #637e8d; padding-bottom: 10px; overflow-wrap: anywhere; }
.contact-email span { margin-left: 8px; }
.contact-links > span { color: #bdccd4; font-size: .8rem; }
.contact-profile { font-size: .85rem; color: #b8dace; margin-top: 9px; }
.site-footer { background: var(--paper); color: var(--muted); font-size: .75rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 23px; }
.footer-content a { white-space: nowrap; }
.error-section { min-height: 65vh; }
.error-section h1 { margin-bottom: 22px; }
.error-section .button { margin-top: 25px; }
.error-reference { margin-top: 25px; font-size: .8rem; color: var(--muted); }

@media (min-width: 1500px) { .hero { padding-block: 96px; } }
@media (max-width: 1000px) {
  .page-width { width: calc(100% - 64px); }
  .hero { gap: 45px; grid-template-columns: minmax(0, 1fr) 230px; padding-block: 62px; }
  .portrait { padding: 23px 21px; }
  .nav-links { gap: 18px; }
  .about-section { gap: 45px; grid-template-columns: .8fr 1.2fr; }
  .work-list li { grid-template-columns: 90px 1fr 1fr; gap: 20px; }
  .contact-content { gap: 40px; }
}
@media (max-width: 760px) {
  .page-width { width: calc(100% - 40px); }
  .site-nav { flex-wrap: wrap; gap: 17px; padding-block: 18px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 12px; font-size: .84rem; border-top: 1px solid var(--line); padding-top: 12px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 45px; }
  .hero h1 { font-size: clamp(2.25rem, 7vw, 3.1rem); margin-block: 16px 22px; }
  .desktop-break { display: none; }
  .hero-intro { font-size: 1.05rem; }
  .hero-description { font-size: .95rem; }
  .hero-actions { gap: 17px; margin-top: 25px; }
  .portrait { width: 235px; justify-self: center; }
  .strip-content { grid-template-columns: 1fr; gap: 17px; padding-block: 22px; }
  .strip-content p { display: flex; align-items: baseline; gap: 13px; flex-wrap: wrap; }
  .strip-content p + p { border: 0; padding-left: 0; }
  .strip-content strong { font-size: 1rem; }
  .strip-content span { font-size: .8rem; }
  .section { padding-block: 52px; }
  .about-section { grid-template-columns: 1fr; gap: 27px; }
  .section-summary { max-width: none; margin-top: 17px; }
  .expertise-list > div { grid-template-columns: 1fr; gap: 4px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading > p { margin-top: 17px; max-width: none; }
  .work-list li { grid-template-columns: 80px 1fr; gap: 9px 14px; padding-block: 24px; }
  .work-description { grid-column: 2; }
  .project { grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding-block: 25px; }
  .project-symbol { width: 45px; height: 45px; font-size: 1.2rem; border-radius: 8px; margin-top: 5px; }
  .solitaire-symbol { grid-template-columns: repeat(2, 10px); gap: 4px; }
  .solitaire-symbol i { width: 10px; height: 10px; }
  .project-technology { grid-column: 2; text-align: left; margin-top: -5px; }
  .project h3 { font-size: 1.2rem; line-height: 1.3; }
  .contact-content { grid-template-columns: 1fr; gap: 27px; }
  .contact-section { padding-block: 48px; }
  .contact-email { font-size: 1.08rem; }
  .footer-content { flex-wrap: wrap; gap: 8px 20px; }
  .footer-content > span:nth-child(2) { order: 3; flex-basis: 100%; }
  .footer-content a { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
