:root {
  --bg: #0a0b0d;
  --bg-soft: #111317;
  --card: #15181d;
  --line: rgba(255,255,255,.11);
  --line-strong: rgba(255,255,255,.2);
  --text: #f3f4f6;
  --muted: #a8adb5;
  --muted-2: #7e858f;
  --accent: #d8dde5;
  --accent-strong: #ffffff;
  --radius: 22px;
  --shadow: 0 20px 70px rgba(0,0,0,.28);
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(circle at 20% 10%, rgba(255,255,255,.06), transparent 26%), radial-gradient(circle at 85% 28%, rgba(255,255,255,.035), transparent 24%);
  z-index: -1;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.section { padding: 112px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-dark { position: relative; overflow: clip; }

.skip-link { position: absolute; left: -9999px; top: 10px; }
.skip-link:focus { left: 10px; z-index: 1000; padding: 10px 14px; background: #fff; color: #000; border-radius: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,11,13,.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 220px; }
.brand-mark {
  width: 39px; height: 39px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  background: linear-gradient(145deg, #22262c, #0f1114);
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 14px; letter-spacing: .02em; }
.brand-copy small { color: var(--muted-2); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.desktop-nav { display: flex; gap: 30px; margin-left: auto; }
.desktop-nav a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color .2s ease; }
.desktop-nav a:hover { color: #fff; }
.mini-cta { padding: 10px 15px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: 12px; font-weight: 700; }

.hero { padding: 108px 0 92px; }
.hero::after {
  content: ""; position: absolute; width: 580px; height: 580px; right: -250px; top: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06); box-shadow: inset 0 0 120px rgba(255,255,255,.025);
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 18px; color: #c1c6ce; text-transform: uppercase; font-size: 11px; line-height: 1; letter-spacing: .22em; font-weight: 800; }
h1, h2, h3 {
  overflow-wrap: normal;
  word-break: normal;
}
p, li, .company, .skill-list span {
  overflow-wrap: break-word;
  hyphens: auto;
}
.email-address {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: none;
}
h1 { margin: 0; font-size: clamp(54px, 7.2vw, 98px); line-height: .93; letter-spacing: -.055em; font-weight: 760; }
h1 span { color: #858c96; }
.lead { max-width: 720px; margin: 30px 0 0; color: #c5c9cf; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 750; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #f4f5f7; color: #0a0b0d; }
.button-ghost { border: 1px solid var(--line-strong); color: #e8eaed; background: rgba(255,255,255,.025); }
.hero-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 62px; border-top: 1px solid var(--line); }
.hero-meta > div { padding: 24px 20px 0 0; display: grid; gap: 3px; }
.hero-meta strong { font-size: 22px; }
.hero-meta span { color: var(--muted-2); font-size: 11px; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; }

.profile-card { position: relative; background: linear-gradient(160deg, #171a1f 0%, #101216 100%); border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
.profile-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.04); border-radius: 20px; pointer-events: none; }
.portrait-placeholder {
  min-height: 330px; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; display: grid; place-items: center; position: relative;
  background: linear-gradient(145deg, #25282d 0%, #141619 48%, #090a0c 100%);
  border: 1px solid rgba(255,255,255,.06);
}
.portrait-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%;
  opacity: 1; transform: scale(1.002); transition: transform .35s ease;
}
.portrait-placeholder:hover .portrait-photo { transform: scale(1.018); }
.portrait-fallback { display: none; }

.portrait-fallback::before { content: ""; width: 160px; height: 160px; border-radius: 50%; position: absolute; top: 54px; background: linear-gradient(145deg,#2d3239,#16191e); box-shadow: 0 70px 0 50px #1f2329; }
.portrait-fallback span { position: relative; z-index: 2; margin-top: 185px; font-size: 52px; font-weight: 800; letter-spacing: -.04em; color: rgba(255,255,255,.85); }
.portrait-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 68%, rgba(10,11,13,.18) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.profile-card-content { position: relative; padding: 24px 6px 6px; }
.profile-label { margin: 0 0 8px; color: var(--muted-2); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
.profile-card h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.03em; }
.profile-card-content > p:not(.profile-label) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.profile-contact { display: grid; gap: 4px; margin: 22px 0 20px; }
.profile-contact a { text-decoration: none; color: #eceff2; font-size: 13px; }
.text-link { text-decoration: none; display: inline-flex; gap: 10px; align-items: center; color: #d9dde2; font-size: 12px; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; }

.section-heading { max-width: 830px; margin-bottom: 58px; }
.section-heading.compact { margin-bottom: 44px; }
.section-heading h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; }
.section-lead { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 790px; margin-top: 24px; }
.intro-grid { display: grid; grid-template-columns: 1.5fr .7fr; gap: 70px; align-items: start; }
.story { max-width: 790px; }
.story p { margin: 0 0 24px; color: #c6cad0; font-size: 17px; line-height: 1.85; }
.story p:first-child { font-size: 20px; color: #eceef1; }
.quote-card { position: sticky; top: 115px; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(145deg,#16191e,#101216); }
.quote-mark { display: block; font-family: Georgia, serif; font-size: 72px; line-height: .7; color: #6e747d; margin-bottom: 24px; }
.quote-card blockquote { margin: 0; font-size: 26px; line-height: 1.35; letter-spacing: -.02em; }
.quote-card p { margin: 22px 0 0; color: var(--muted); font-size: 13px; }

.card-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.info-card { min-height: 260px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: rgba(255,255,255,.018); }
.card-number { color: var(--muted-2); font-size: 11px; letter-spacing: .12em; }
.info-card h3 { margin: auto 0 12px; font-size: 22px; letter-spacing: -.025em; }
.info-card p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.7; }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 182px; top: 8px; bottom: 10px; width: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 66px; padding: 0 0 72px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: 177px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: #606771; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line-strong); }
.timeline-date { color: var(--muted-2); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.timeline-content { max-width: 850px; }
.company { color: #aeb3bb; font-size: 12px; margin: 0 0 8px; letter-spacing: .04em; }
.timeline-content h3 { margin: 0 0 20px; font-size: 28px; letter-spacing: -.03em; }
.timeline-content ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline-content li { color: var(--muted); font-size: 14px; line-height: 1.65; padding-left: 20px; position: relative; }
.timeline-content li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 1px; background: #8f959e; }
.featured .timeline-content { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.018); }
.featured::before { top: 36px; }
.featured .timeline-date { padding-top: 32px; }

.skills-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.skill-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.skill-list span { display: flex; align-items: center; min-height: 78px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; color: #d5d8dd; font-size: 13px; line-height: 1.45; background: rgba(255,255,255,.015); }

.opportunity { padding-top: 100px; padding-bottom: 100px; }
.opportunity-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; border: 1px solid var(--line); border-radius: 28px; padding: 52px; background: linear-gradient(145deg,#15181d,#0e1013); }
.opportunity-panel h2 { margin: 0; font-size: clamp(34px,4.2vw,56px); line-height: 1.08; letter-spacing: -.04em; }
.opportunity-copy { display: flex; align-items: flex-end; }
.opportunity-copy p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.opportunity-copy strong { color: #eceff2; font-weight: 650; }

.contact { padding-top: 24px; padding-bottom: 120px; }
.contact-panel { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; border-top: 1px solid var(--line); padding-top: 76px; }
.contact-intro h2 { margin: 0; font-size: clamp(40px,5vw,64px); line-height: 1.02; letter-spacing: -.045em; max-width: 760px; }
.contact-intro > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 660px; margin-top: 24px; }
.contact-actions { border-top: 1px solid var(--line); }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left .2s ease, background .2s ease; }
.contact-row:hover { padding-left: 10px; background: rgba(255,255,255,.015); }
.contact-row span:first-child { display: grid; gap: 6px; }
.contact-row small { color: var(--muted-2); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.contact-row strong { font-size: 18px; }
.contact-row > span:last-child { color: #8c929b; font-size: 20px; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 42px; color: var(--muted-2); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-grid > div:first-child { display: grid; gap: 4px; }
.footer-grid strong { color: #d6d9de; font-size: 12px; }
.footer-grid span, .footer-links a { font-size: 11px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted-2); text-decoration: none; }
.mobile-bar { display: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .contact-row { transition: none; }
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 800px; }
  .profile-card { max-width: 590px; }
  .portrait-placeholder { min-height: 270px; }
  .intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .quote-card { position: static; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; gap: 38px; }
  .opportunity-panel { grid-template-columns: 1fr; gap: 28px; }
  .contact-panel { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 720px) {
  :root { --radius: 18px; }
  body { padding-bottom: 70px; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .section { padding: 78px 0; }
  .nav-wrap { height: 64px; }
  .brand { min-width: auto; }
  .brand-copy small { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .mini-cta { display: none; }
  .hero { padding: 72px 0 60px; }
  .hero::after { width: 300px; height: 300px; right: -180px; top: 20px; }
  h1 { font-size: clamp(40px, 12.8vw, 61px); line-height: .96; letter-spacing: -.045em; }
  .lead { font-size: 18px; line-height: 1.55; margin-top: 24px; }
  .hero-actions { margin-top: 30px; display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-meta { margin-top: 46px; grid-template-columns: 1fr; }
  .hero-meta > div { padding: 17px 0; border-bottom: 1px solid var(--line); grid-template-columns: 82px 1fr; align-items: center; }
  .hero-meta > div:first-child { border-top: 1px solid var(--line); }
  .hero-meta strong { font-size: 18px; }
  .profile-card { padding: 16px; border-radius: 22px; }
  .portrait-placeholder { min-height: 230px; }
  .portrait-fallback::before { width: 118px; height: 118px; top: 42px; box-shadow: 0 55px 0 39px #1f2329; }
  .portrait-fallback span { margin-top: 142px; font-size: 40px; }
  .profile-card h2 { font-size: 27px; }
  .profile-card-content > p:not(.profile-label) { max-width: 100%; }
  .profile-contact a { line-height: 1.45; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 { font-size: clamp(32px, 9.4vw, 46px); line-height: 1.06; letter-spacing: -.035em; }
  .section-lead { font-size: 15px; }
  .story p, .story p:first-child { font-size: 16px; line-height: 1.76; }
  .quote-card { padding: 26px; }
  .quote-card blockquote { font-size: 23px; }
  .card-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 210px; }
  .timeline::before { left: 5px; }
  .timeline-item { grid-template-columns: 1fr; gap: 14px; padding-left: 32px; padding-bottom: 56px; }
  .timeline-item::before { left: 0; top: 4px; }
  .timeline-date, .featured .timeline-date { padding-top: 0; }
  .featured::before { top: 4px; }
  .featured .timeline-content { padding: 22px; margin-left: -8px; }
  .timeline-content h3 { font-size: 23px; line-height: 1.18; overflow-wrap: break-word; hyphens: auto; }
  .timeline-content li { font-size: 13.5px; }
  .skill-list { grid-template-columns: 1fr; }
  .skill-list span { min-height: 64px; }
  .opportunity { padding-top: 72px; padding-bottom: 72px; }
  .opportunity-panel { padding: 30px 24px; }
  .opportunity-copy p { font-size: 15px; }
  .contact { padding-bottom: 72px; }
  .contact-panel { padding-top: 58px; }
  .contact-intro h2 { font-size: clamp(32px, 9.4vw, 46px); line-height: 1.06; letter-spacing: -.035em; }
  .contact-row { min-height: 82px; }
  .contact-row strong { font-size: 16px; min-width: 0; }
  .contact-row > span:first-child { min-width: 0; }
  .footer-grid { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: grid; grid-template-columns: repeat(3,1fr);
    padding: 8px max(10px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom));
    background: rgba(12,13,15,.94); border-top: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .mobile-bar a { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: #d8dce1; font-size: 10px; }
  .mobile-bar a span { font-size: 16px; }
}

@media (max-width: 360px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  h1 { font-size: clamp(38px, 12.2vw, 44px); }
  .hero { padding-top: 60px; }
  .section-heading h2, .contact-intro h2 { font-size: 30px; }
  .opportunity-panel h2 { font-size: 30px; }
  .profile-card { padding: 13px; }
  .featured .timeline-content { padding: 19px; }
  .mobile-bar a { font-size: 9px; }
}

@media print {
  .site-header, .mobile-bar, .hero-actions, .footer-links { display: none !important; }
  body { background: #fff; color: #111; padding: 0; }
  .section, .hero { padding: 35px 0; }
  .section-soft { background: #fff; }
  .shell { width: 100%; max-width: none; }
  .hero-grid, .intro-grid, .skills-grid, .contact-panel, .opportunity-panel { grid-template-columns: 1fr; }
  .profile-card, .info-card, .quote-card, .opportunity-panel, .featured .timeline-content { box-shadow: none; border-color: #ccc; background: #fff; color: #111; }
  h1 span, .lead, .story p, .timeline-content li, .section-lead, .opportunity-copy p, .contact-intro > p:last-child, .info-card p { color: #333; }
}
