:root {
  color-scheme: light;
  --navy: #0d1a2b;
  --navy-2: #142640;
  --ink: #17243b;
  --muted: #66738a;
  --paper: #f1f5fa;
  --white: #ffffff;
  --line: #d8e0ea;
  --gold: #f4bd54;
  --cyan: #25aab8;
  --blue: #427bd3;
  --red: #ef3f5c;
  --shadow: 0 12px 34px rgba(24, 51, 88, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: "Manrope", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }

.site-header { position: absolute; top: 0; left: 50%; z-index: 10; display: grid; grid-template-columns: 160px 1fr 120px; align-items: center; width: min(1440px, calc(100% - 72px)); height: 76px; transform: translateX(-50%); color: var(--white); }
.brand { display: grid; width: fit-content; text-decoration: none; }
.brand-mark { display: block; font-size: 1.8rem; font-style: italic; font-weight: 800; line-height: 1; }
.brand small { margin-top: 4px; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.22em; }
.site-header nav { display: flex; justify-content: center; gap: clamp(22px, 3vw, 46px); }
.site-header nav a { position: relative; color: rgba(255,255,255,.82); font-size: .75rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover, .site-header nav a.active { color: var(--white); }
.site-header nav a.active::after { position: absolute; right: 0; bottom: -10px; left: 0; height: 1px; background: var(--white); content: ""; }
.download-link { justify-self: end; padding: 8px 15px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; font-size: .72rem; font-weight: 700; text-decoration: none; }

.hero { position: relative; min-height: 690px; background-color: var(--navy); background-image: url("./assets/hero-executive.png"); background-position: center; background-size: cover; color: var(--white); }
.hero-inner { position: relative; z-index: 1; width: min(1440px, calc(100% - 72px)); min-height: 690px; margin: 0 auto; }
.hero-copy { display: flex; width: min(610px, 48%); min-height: 690px; flex-direction: column; justify-content: center; padding-top: 76px; }
.hello { margin: 0 0 11px; color: rgba(255,255,255,.65); font-size: .9rem; }
.hero h1 { margin: 0; font-size: clamp(3.6rem, 5.8vw, 6.4rem); font-weight: 800; line-height: .98; }
.hero h2 { margin: 8px 0 1px; color: var(--gold); font-size: clamp(1.22rem, 2vw, 2rem); font-weight: 800; line-height: 1.15; }
.role-en { margin: 0; font-size: .98rem; }
.intro { max-width: 580px; margin: 24px 0 0; color: rgba(255,255,255,.83); font-size: .9rem; line-height: 1.65; }
.hero blockquote { margin: 22px 0 0; color: rgba(255,255,255,.92); font-size: 1.05rem; font-style: italic; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 14px; padding: 10px 21px; border: 1px solid rgba(255,255,255,.75); border-radius: 6px; font-size: .82rem; font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.button.ghost { background: rgba(13,26,43,.35); color: var(--white); }
.hero-side-note { position: absolute; top: 158px; right: 0; display: grid; gap: 8px; color: rgba(255,255,255,.36); font-size: .9rem; font-weight: 800; }

.contact-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 62px; background: var(--white); box-shadow: 0 4px 18px rgba(24,51,88,.06); }
.contact-strip > * { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 18px; border-right: 1px solid var(--line); color: #3e4d65; font-size: .72rem; text-decoration: none; }
.contact-strip > *:last-child { border-right: 0; }
.contact-strip b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #e8eef6; color: var(--navy-2); font-size: .62rem; }

.page-shell { width: min(1440px, calc(100% - 64px)); margin: 0 auto; }
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); margin: 18px 0; overflow: hidden; border: 1px solid #e3e8ef; border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.pillars article { display: flex; min-height: 106px; align-items: center; justify-content: center; gap: 14px; border-right: 1px solid var(--line); }
.pillars article:last-child { border-right: 0; }
.pillars strong { display: grid; width: 40px; height: 40px; place-items: center; color: var(--blue); font-size: 1.55rem; }
.pillars article:nth-child(2) strong { color: var(--ink); }
.pillars article:nth-child(3) strong { color: var(--cyan); }
.pillars article:nth-child(4) strong { color: #2e4263; }
.pillars article:nth-child(5) strong { color: #2ea5a6; }
.pillars h3, .pillars p { margin: 0; }
.pillars h3 { font-size: .78rem; }
.pillars p { color: var(--muted); font-size: .68rem; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(310px, 1fr); gap: 18px; }
.panel, .values { border: 1px solid #e3e8ef; border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.panel { padding: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; font-size: 1rem; }
.panel-heading span { color: var(--muted); font-size: .68rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.project-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-card div { padding: 12px; }
.project-card h3, .project-card p { margin: 0; }
.project-card h3 { font-size: .78rem; }
.project-card p { margin-top: 5px; color: var(--muted); font-size: .67rem; }
.compact-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.compact-projects article { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; }
.compact-projects span { color: var(--cyan); font-size: 1rem; font-weight: 800; }
.compact-projects h3, .compact-projects p { margin: 0; }
.compact-projects h3 { font-size: .76rem; }
.compact-projects p { margin-top: 4px; color: var(--muted); font-size: .66rem; }
.side-column { display: grid; gap: 18px; }
.skills-panel { padding-bottom: 18px; }
.skill { margin: 11px 0; }
.skill div { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 5px; font-size: .69rem; }
.skill b { color: #6d7990; }
.skill i { position: relative; display: block; height: 7px; overflow: hidden; border-radius: 99px; background: #e0e6ee; }
.skill i::after { position: absolute; inset: 0 auto 0 0; width: var(--score); border-radius: inherit; background: #294268; content: ""; }
.certificate-panel article { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #edf0f4; }
.certificate-panel article > strong { color: var(--blue); font-size: 1rem; }
.certificate-panel h3, .certificate-panel p { margin: 0; }
.certificate-panel h3 { font-size: .71rem; }
.certificate-panel p { color: var(--muted); font-size: .66rem; }

.values { margin: 18px 0; padding: 22px; }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.value-grid article { min-height: 190px; padding: 18px; border-top: 3px solid currentColor; background: #fbfcfe; box-shadow: 0 6px 18px rgba(24,51,88,.05); }
.value-grid article.red { color: var(--red); }
.value-grid article.cyan { color: var(--cyan); }
.value-grid article.gold { color: #d99b23; }
.value-grid article.blue { color: var(--blue); }
.value-grid span { display: block; margin-bottom: 15px; font-size: 1.7rem; font-weight: 800; }
.value-grid h3 { margin: 0; color: var(--ink); font-size: .82rem; line-height: 1.35; }
.value-grid p { margin: 9px 0 0; color: var(--muted); font-size: .68rem; }

.experience { margin-bottom: 18px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.timeline article { padding: 20px 20px 6px 0; }
.timeline article + article { padding-left: 20px; border-left: 1px solid var(--line); }
.timeline time { color: var(--blue); font-size: .64rem; font-weight: 800; }
.timeline h3 { margin: 8px 0 3px; font-size: .82rem; }
.timeline b { color: #55637a; font-size: .66rem; }
.timeline p { margin: 9px 0 0; color: var(--muted); font-size: .67rem; }

.legacy { position: relative; background-color: var(--navy); background-image: url("./assets/hero-executive.png"); background-position: center 72%; background-size: cover; color: var(--white); }
.legacy::before { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7, 14, 26, 0.94) 0%, rgba(7, 14, 26, 0.82) 32%, rgba(7, 14, 26, 0.32) 58%, rgba(7, 14, 26, 0.08) 78%); content: ""; }
.legacy-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.45fr .75fr; gap: 46px; align-items: center; width: min(1440px, calc(100% - 72px)); min-height: 210px; margin: 0 auto; }
.legacy-title span { color: var(--gold); font-size: .72rem; font-weight: 800; }
.legacy-title h2 { margin: 7px 0 0; font-size: 1.18rem; }
.legacy-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 30px 26px; border: 1px solid rgba(244, 189, 84, 0.28); border-radius: 14px; background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); backdrop-filter: blur(14px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.legacy-stats article { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 22px; }
.legacy-stats article + article { border-left: 1px solid rgba(244, 189, 84, 0.28); }
.legacy-stats article:first-child { padding-left: 0; }
.legacy-stats svg { width: 22px; height: 22px; stroke: var(--gold); }
.legacy-stats strong { color: var(--gold); font-family: "Manrope", Arial, sans-serif; font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; text-shadow: 0 0 26px rgba(244, 189, 84, 0.45); }
.legacy-stats p { margin: 0; color: rgba(255,255,255,.76); font-size: .68rem; font-weight: 600; letter-spacing: 0.01em; }
.legacy blockquote { margin: 0; font-size: .78rem; font-style: italic; }
.legacy cite { display: block; margin-top: 14px; color: var(--gold); font-size: .62rem; font-style: normal; font-weight: 800; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: 96px; padding: 20px max(32px, calc((100vw - 1440px) / 2)); background: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.brand-mark.dark { color: var(--navy); }
.footer-brand div { display: grid; }
.footer-brand strong { font-size: .7rem; }
.footer-brand small { color: var(--muted); font-size: .59rem; }
footer nav { display: flex; gap: 26px; }
footer nav a, .footer-contact a { color: #56637a; font-size: .64rem; text-decoration: none; }
.footer-contact { display: flex; justify-self: end; gap: 10px; }
.footer-contact a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero-copy { width: 58%; }
  .hero-side-note { display: none; }
  .contact-strip { grid-template-columns: repeat(3, 1fr); }
  .contact-strip > *:nth-child(n+4) { display: none; }
  .pillars { grid-template-columns: repeat(5, 1fr); }
  .pillars article { flex-direction: column; gap: 2px; text-align: center; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .timeline article:nth-child(4) { border-top: 1px solid var(--line); }
  .legacy-inner { grid-template-columns: 1fr 2fr; }
  .legacy blockquote { display: none; }
  footer nav { display: none; }
  footer { grid-template-columns: 1fr auto; }
}

@media (max-width: 720px) {
  .site-header { width: calc(100% - 32px); height: 66px; }
  .download-link { padding: 7px 12px; }
  .hero, .hero-inner { min-height: 720px; }
  .hero { background-position: 66% center; }
  .hero::before { position: absolute; inset: 0; background: rgba(7,17,30,.66); content: ""; }
  .hero-inner { width: calc(100% - 32px); }
  .hero-copy { position: relative; width: 100%; min-height: 720px; justify-content: flex-end; padding: 110px 0 52px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .hero h2 { font-size: 1.1rem; }
  .intro { max-width: 100%; font-size: .82rem; }
  .hero blockquote { font-size: .92rem; }
  .contact-strip { grid-template-columns: 1fr; }
  .contact-strip > * { justify-content: flex-start; padding-left: 20px; }
  .contact-strip > *:nth-child(3) { display: none; }
  .page-shell { width: calc(100% - 24px); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars article { min-height: 100px; border-bottom: 1px solid var(--line); }
  .pillars article:nth-child(2n) { border-right: 0; }
  .pillars article:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .panel, .values { padding: 16px; }
  .project-grid, .compact-projects, .side-column, .value-grid, .timeline { grid-template-columns: 1fr; }
  .project-card img { aspect-ratio: 16 / 9; }
  .timeline article, .timeline article + article { padding: 18px 0; border-top: 1px solid var(--line); border-left: 0; }
  .timeline article:first-child { border-top: 0; }
  .legacy-inner { grid-template-columns: 1fr; width: calc(100% - 32px); padding: 46px 0; }
  .legacy-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 0; padding: 24px 18px; }
  .legacy-stats article { padding: 0 16px; }
  .legacy-stats article:nth-child(odd) { padding-left: 0; border-left: 0; }
  .legacy-stats article:nth-child(even) { border-left: 1px solid rgba(244, 189, 84, 0.28); }
  .legacy-stats strong { font-size: 2.1rem; }
  footer { padding: 20px 16px; }
  .footer-contact { display: none; }
}

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