/* tranmyphuc.com — static profile site. Executive style: navy/slate + one steel accent.
   No rainbow gradient, no glow. No external assets. */

:root {
  --navy: #12263f;
  --accent: #2f5d8a;
  --accent-dark: #1b3a5c;
  --bg: #ffffff;
  --bg-alt: #f2f4f7;
  --text: #1e293b;
  --muted: #52606d;
  --border: #d8dee6;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(18, 38, 63, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 100;
}
.skip-link:focus { top: 0; color: #fff; }

#main:focus { outline: none; }
#main:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  cursor: pointer;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  display: block;
  padding: 0.5rem 0.25rem;
}
.nav-links a:hover { color: var(--accent); }

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 60ch; }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
}
h2 {
  display: block;
  position: relative;
  font-size: 2rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 3px;
  background: var(--accent);
}
h3 { font-size: 1.25rem; margin: 0 0 0.6rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.hero-role {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}
.hero h1 { font-size: 2.9rem; margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: var(--text); max-width: 58ch; }
.hero-proof {
  color: var(--text);
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  max-width: 56ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.2s ease;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border: 1.5px solid var(--navy); color: var(--navy); background: #ffffff; }
.btn-ghost:hover { background: var(--bg-alt); }

/* Portrait */
.hero-photo-wrap { text-align: center; }
.photo-card { max-width: 380px; margin: 0 auto; }
.portrait {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.photo-caption { color: var(--muted); font-size: 0.92rem; max-width: 34ch; margin: 1rem auto 0; }

/* About */
.about-body { max-width: 72ch; }
.about-body p { margin: 0 0 1rem; }
.about-body p:last-child { margin-bottom: 0; }

/* Metrics */
.metrics-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow);
}
.metric-value {
  display: block;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}
.metric-label { color: var(--muted); font-size: 0.93rem; }

/* Expertise */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.expertise-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.expertise-card:hover { transform: translateY(-2px); }
.expertise-card ul { margin: 0; padding-left: 1.2rem; flex: 1; }
.expertise-card li { margin-bottom: 0.35rem; }

/* Defense in depth — static list */
.defense-static {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.defense-static li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.defense-static .defense-num {
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}
.defense-static h3 { margin-bottom: 0.25rem; }
.defense-static p { margin: 0; color: var(--muted); }

/* Timeline */
.timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.timeline-item {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.timeline-item:hover { transform: translateY(-2px); }
.org { font-weight: 700; color: var(--navy); margin: 0.15rem 0; }
.org-detail { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.9rem; }
.timeline-item ul { margin: 0; padding-left: 1.2rem; }
.timeline-item li { margin-bottom: 0.5rem; }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.project-card:hover { transform: translateY(-2px); }
.project-desc { flex: 1; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.7rem; }
.chip {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
}
.chip-org {
  color: var(--accent-dark);
  background: #eaf1f8;
  border-color: #bcd0e4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-result {
  font-weight: 700;
  color: var(--navy);
  margin: 1rem 0 0;
  padding: 0.6rem 0.8rem;
  background: #eef3f8;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.tag-row-flush { margin-top: 0; }
.tag {
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
}

/* Certifications */
.two-col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}
.cert-col h4 {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.25rem 0 0.5rem;
}
.cert-col h4:first-child { margin-top: 0; }
.cert-note {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.25rem 0 0.5rem;
}
.cert-grid { display: grid; gap: 0.55rem; }
.cert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
}
.cert-main strong { display: block; color: var(--navy); font-size: 0.98rem; }
.cert-detail { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.1rem; }
.cert-year {
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--accent-dark);
  background: #eaf1f8;
  border: 1px solid #bcd0e4;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
}

/* Contact */
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.contact-list a { overflow-wrap: anywhere; }
.contact-label { font-weight: 700; color: var(--navy); min-width: 90px; }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 2.5rem 0 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .timeline-item { padding: 1.25rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.6rem 0; }
}

@media (max-width: 520px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .timeline-item { padding: 1rem; }
  .contact-list li { flex-direction: column; gap: 0.15rem; }
  .contact-label { min-width: 0; }
  .defense-static li { grid-template-columns: 2rem 1fr; gap: 0.75rem; }
}

/* Reduced motion — everything static, content fully visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
