:root {
  --ink: #142733;
  --muted: #687983;
  --accent: #0f637c;
  --accent-light: #9dd7e7;
  --navy: #173f55;
  --paper: #ffffff;
  --soft: #f4f7f7;
  --line: #d7e0e3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; inset: 0 0 auto; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.brand { display: inline-flex; width: fit-content; flex-direction: column; gap: 4px; }
.brand strong { font-size: 19px; line-height: 1.1; letter-spacing: -.025em; }
.brand span { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.desktop-nav { display: flex; gap: 34px; align-items: center; }
.desktop-nav a { font-size: 15px; font-weight: 620; color: #334851; }
.desktop-nav a:hover, .footer-top a:hover { color: var(--accent); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-resume, .header-contact { min-width: 94px; height: 44px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; border: 1px solid var(--ink); }
.header-resume { background: #fff; }
.header-contact { color: #fff; background: var(--ink); }
.header-resume:hover { color: #fff; background: var(--ink); }
.header-contact:hover { background: var(--accent); border-color: var(--accent); }
.menu-button, .mobile-menu { display: none; }

.hero { min-height: 640px; padding-block: 82px 74px; display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr); gap: 90px; align-items: center; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 12px; font-weight: 750; line-height: 1.3; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(68px, 7.2vw, 104px); line-height: .95; letter-spacing: -.064em; font-weight: 760; }
.hero-role { margin: 22px 0 0; color: var(--accent); font-size: clamp(25px, 2.5vw, 34px); font-weight: 630; letter-spacing: -.03em; }
.hero-summary { max-width: 650px; margin: 32px 0 0; font-size: 22px; line-height: 1.5; letter-spacing: -.02em; }
.hero-detail { max-width: 660px; margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--ink); border-color: var(--ink); }
.button.secondary:hover { border-color: var(--ink); }
.hero-photo { position: relative; margin: 0; }
.hero-photo::before { content: ""; position: absolute; inset: 20px -18px -20px 18px; border: 1px solid #bcd3da; z-index: -1; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 1 / 1.24; object-fit: cover; object-position: 50% 38%; }
.hero-photo figcaption { position: absolute; left: -20px; right: 36px; bottom: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 5px; color: #fff; background: rgba(20,39,51,.94); }
.hero-photo figcaption strong { font-size: 14px; }
.hero-photo figcaption span { color: #c8d3d8; font-size: 12px; }

.facts-section { color: #fff; background: var(--ink); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { min-height: 120px; padding: 31px 24px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid rgba(255,255,255,.15); }
.facts-grid > div:first-child { padding-left: 0; }
.facts-grid > div:last-child { border-right: 0; }
.facts-grid strong { color: var(--accent-light); font-size: 15px; }
.facts-grid span { color: #b9c5ca; font-size: 12px; line-height: 1.55; }

.section { padding-block: 110px; }
.section-heading h2 { max-width: 700px; margin: 0; font-size: clamp(42px, 5vw, 64px); line-height: 1.05; letter-spacing: -.055em; }
.section-note { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.about-section { display: grid; grid-template-columns: .95fr 1.05fr; gap: 100px; align-items: start; }
.about-copy { padding-top: 28px; }
.about-copy p { margin: 0 0 22px; color: #40535d; font-size: 18px; line-height: 1.75; }
.experience-section, .approach-section { background: var(--soft); border-block: 1px solid var(--line); }
.experience-card { margin-top: 54px; display: grid; grid-template-columns: .85fr 1.15fr; border: 1px solid var(--line); background: #fff; }
.experience-role { padding: 44px; border-right: 1px solid var(--line); }
.experience-role > span { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.experience-role h3 { margin: 24px 0 14px; font-size: 28px; line-height: 1.25; letter-spacing: -.035em; }
.experience-role p { margin: 0; color: var(--muted); font-size: 14px; }
.experience-card ul { margin: 0; padding: 28px 42px 28px 60px; }
.experience-card li { padding: 16px 0 16px 6px; color: #3a4e58; font-size: 15px; line-height: 1.6; border-bottom: 1px solid var(--line); }
.experience-card li:last-child { border-bottom: 0; }
.experience-card li::marker { color: var(--accent); }
.skills-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.skills-grid article { min-height: 210px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skills-grid h3 { margin: 0 0 20px; font-size: 21px; letter-spacing: -.025em; }
.skills-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.approach-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.approach-grid > div { padding-top: 20px; border-top: 2px solid var(--ink); }
.approach-grid span { color: var(--accent); font-size: 12px; font-weight: 750; }
.approach-grid h3 { margin: 34px 0 14px; font-size: 24px; }
.approach-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.contact-band { color: #fff; background: var(--navy); }
.contact-band-inner { min-height: 380px; padding-block: 78px; display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: center; }
.eyebrow.light { color: #a4dbeb; }
.contact-band h2 { max-width: 750px; margin: 0; font-size: clamp(52px, 6vw, 78px); line-height: 1; letter-spacing: -.06em; }
.contact-band p:not(.eyebrow) { margin: 20px 0 0; color: #c2d4dd; font-size: 17px; line-height: 1.6; }
.contact-card-button { width: 250px; min-height: 78px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); background: #fff; font-size: 15px; font-weight: 750; }
.contact-card-button b { color: var(--accent); font-size: 20px; }
.contact-card-button:hover { background: #dff2f7; }

.site-footer { background: #f0f4f5; border-top: 1px solid #d9e3e6; }
.footer-top { min-height: 224px; padding-block: 48px; display: grid; grid-template-columns: 1.25fr .75fr 1fr; gap: 72px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 7px; }
.footer-brand strong { font-size: 18px; }
.footer-brand span { color: var(--muted); font-size: 13px; }
.footer-column h2 { margin: 0 0 18px; color: var(--ink); font-size: 12px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.footer-top nav div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-top nav a { color: #40545e; font-size: 13px; font-weight: 620; }
.footer-connect { justify-self: stretch; }
.footer-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.footer-socials a { display: inline-flex; align-items: center; gap: 8px; color: #40545e; font-size: 13px; font-weight: 620; }
.footer-socials a:hover { color: var(--accent); }
.footer-socials svg { width: 19px; height: 19px; fill: currentColor; }
.footer-bottom { min-height: 64px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; text-align: center; border-top: 1px solid #d9e3e6; }

.card-page, .resume-page { min-height: 100vh; padding: 60px 24px; display: grid; place-items: center; background: var(--soft); }
.card-wrap { width: min(980px, 100%); }
.card-panel { display: grid; grid-template-columns: .8fr 1.2fr; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(20,39,51,.09); }
.card-photo { position: relative; min-height: 590px; background: var(--ink); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 38%; }
.card-photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(20,39,51,.88)); }
.card-photo > span { position: absolute; z-index: 1; left: 28px; bottom: 27px; color: #fff; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.card-content { padding: 58px; }
.card-content h1 { margin: 0; font-size: 54px; line-height: 1; letter-spacing: -.055em; }
.card-content h2 { margin: 16px 0 24px; color: var(--accent); font-size: 23px; line-height: 1.3; }
.card-content > p:not(.eyebrow):not(.card-message) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.card-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.card-message { min-height: 20px; margin: 10px 0 0; color: var(--accent); font-size: 12px; }
.card-meta { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card-meta > div { min-height: 96px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-meta span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.card-meta p, .card-meta a { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.card-back { display: inline-block; margin-top: 22px; color: var(--accent); font-size: 14px; font-weight: 700; }
.resume-wrap { width: min(760px, 100%); padding: 70px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(20,39,51,.08); }
.resume-wrap h1 { margin: 0; font-size: clamp(48px, 7vw, 76px); line-height: 1; letter-spacing: -.06em; }
.resume-wrap > p:not(.eyebrow) { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.resume-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .container { width: min(100% - 32px, 720px); }
  .header-inner { height: 72px; grid-template-columns: 1fr auto; gap: 16px; }
  .brand strong { font-size: 18px; }
  .desktop-nav, .header-actions { display: none; }
  .menu-button { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line); background: #fff; }
  .menu-button span { width: 21px; height: 2px; display: block; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu { position: fixed; z-index: 45; inset: 72px 0 0; width: 100%; height: calc(100dvh - 72px); display: block; overflow-y: auto; color: #fff; background: var(--ink); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s ease; }
  .mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .mobile-menu nav { width: min(100% - 32px, 720px); margin-inline: auto; padding: 28px 0 56px; display: flex; flex-direction: column; }
  .mobile-menu a { padding: 21px 8px; color: #fff; font-size: 24px; font-weight: 650; border-bottom: 1px solid rgba(255,255,255,.18); }
  .mobile-menu a:hover { color: var(--accent-light); }
  .hero { min-height: auto; padding-block: 58px 62px; grid-template-columns: 1fr; gap: 54px; }
  .hero h1 { font-size: clamp(58px, 17vw, 86px); }
  .hero-role { font-size: 26px; }
  .hero-summary { margin-top: 26px; font-size: 19px; }
  .hero-photo { width: calc(100% - 14px); }
  .hero-photo figcaption { left: 16px; right: -14px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div, .facts-grid > div:first-child { min-height: 110px; padding: 24px 18px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .section { padding-block: 78px; }
  .section-heading h2 { font-size: 44px; }
  .about-section { grid-template-columns: 1fr; gap: 30px; }
  .about-copy { padding-top: 0; }
  .about-copy p { font-size: 17px; }
  .experience-card { grid-template-columns: 1fr; }
  .experience-role { padding: 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .experience-card ul { padding: 18px 32px 18px 48px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid article { min-height: 190px; padding: 28px; }
  .approach-grid { grid-template-columns: 1fr; gap: 38px; }
  .contact-band-inner { min-height: 430px; padding-block: 64px; grid-template-columns: 1fr; gap: 38px; }
  .contact-band h2 { font-size: 54px; }
  .contact-card-button { width: 100%; }
  .footer-top { padding-block: 46px; grid-template-columns: 1fr; gap: 30px; }
  .footer-top nav div { flex-direction: row; flex-wrap: wrap; gap: 12px 25px; }
  .footer-connect { justify-self: start; }
  .footer-socials { grid-template-columns: repeat(2, max-content); gap: 18px 24px; }
  .card-panel { grid-template-columns: 1fr; }
  .card-photo { min-height: 430px; }
  .card-content { padding: 36px 28px; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 28px); }
  .brand span { font-size: 10px; }
  .eyebrow { font-size: 10px; }
  .hero h1 { font-size: clamp(54px, 18vw, 72px); }
  .hero-role { font-size: 23px; line-height: 1.18; }
  .hero-summary { font-size: 18px; }
  .hero-actions .button { flex: 1; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid > div { border-right: 0; }
  .section-heading h2 { font-size: 38px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skills-grid article { min-height: 0; }
  .contact-band h2 { font-size: 46px; }
  .footer-bottom { padding-block: 20px; }
  .card-page, .resume-page { padding: 24px 14px; }
  .card-photo { min-height: 390px; }
  .card-content h1 { font-size: 44px; }
  .card-meta { grid-template-columns: 1fr; }
  .card-actions .button { width: 100%; }
  .resume-wrap { padding: 48px 26px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .mobile-menu, .menu-button span { transition: none; } }
