/* ===== Cong Ngo — PM Portfolio ===== */
:root {
  /* Dark "zoning" base — pitch black + slate, neutral (not navy) */
  --bg: #0a0a0a;        /* pitch black zone (hero, experience, contact) */
  --bg-2: #161619;      /* dark slate zone (highlights, skills) */
  --bg-3: #26262c;      /* lifted inner surfaces (chips) */
  --surface: #1c1c21;   /* card surface, clearly raised on both zones */
  --border: rgba(255, 255, 255, 0.08);  /* 1px low-opacity card border */
  /* Crisp off-white text (avoids pure-white halation) */
  --text: #f4f4f5;      /* headings / strong */
  --text-2: #d4d4d8;    /* body paragraphs & bullets */
  --text-3: #8a8a93;    /* muted meta / labels */
  /* Gold / amber accent (single accent — strict two-color palette).
     Variable names kept as --emerald* to avoid churn; values are gold. */
  --emerald: #f5a623;
  --emerald-2: #fbbf24;
  --emerald-dim: rgba(245, 166, 35, 0.13);
  --emerald-glow: rgba(245, 166, 35, 0.28);
  --accent-deep: #d97706;
  --on-accent: #20160a;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 90px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-2);
  margin-bottom: 14px;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }

/* Executive Tech: elegant serif for major headers, crisp sans for body */
.section-title, .contact-card h2, .hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.section-title { font-size: clamp(1.85rem, 3.8vw, 2.6rem); margin-bottom: 16px; }
.section-intro { color: var(--text-2); max-width: 620px; font-size: 1.05rem; margin-bottom: 48px; letter-spacing: 0.01em; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.05rem; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--emerald), var(--accent-deep));
  display: grid; place-items: center;
  color: var(--on-accent); font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 4px 14px var(--emerald-glow);
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 0.94rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--emerald); color: var(--on-accent) !important;
  font-weight: 600 !important; transition: transform 0.15s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px var(--emerald-glow); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 76px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -25%; right: -10%;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, var(--emerald-glow), transparent 65%);
  filter: blur(30px); z-index: 0; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero .status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--emerald-dim); border: 1px solid rgba(245,166,35,0.3);
  color: var(--emerald-2); font-size: 0.82rem; font-weight: 600; margin-bottom: 26px;
}
.hero .status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-2); box-shadow: 0 0 0 0 var(--emerald-glow); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--emerald-glow); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.hero h1 .accent { color: var(--emerald-2); }
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-2); max-width: 680px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--emerald); color: var(--on-accent); box-shadow: 0 6px 20px var(--emerald-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--emerald-glow); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald-2); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 26px; margin-top: 56px; flex-wrap: nowrap; }
.hero-stats .stat { flex: 1 1 0; min-width: 0; }
.hero-stats .stat .num { font-size: 1.9rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; white-space: nowrap; }
.hero-stats .stat .lbl { font-size: 0.85rem; color: var(--text-3); }

/* ===== Highlights ===== */
.highlights { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* New career-highlight cards (icon + metric + meta + tags) */
.hl-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.hl-card {
  --accent: var(--emerald); --accent-2: var(--emerald-2); --accent-soft: rgba(245,166,35,0.10);
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 62%);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 18px; padding: 28px; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
}
.hl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.hl-green, .hl-blue, .hl-amber, .hl-purple {
  --accent: #f5a623; --accent-2: #fbbf24; --accent-soft: rgba(245,166,35,0.12);
}

.hl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hl-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  display: grid; place-items: center; color: var(--accent-2);
}
.hl-icon svg { width: 22px; height: 22px; }
.hl-metric { text-align: right; }
.hl-metric .num { font-size: 2.3rem; font-weight: 800; color: var(--accent-2); letter-spacing: -0.03em; line-height: 1; }
.hl-metric .lbl { font-size: 0.82rem; color: var(--text-3); margin-top: 6px; max-width: 200px; }
.hl-title { font-size: 1.35rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.hl-meta { font-size: 0.86rem; color: var(--text-3); margin-bottom: 16px; }
.hl-meta strong { color: var(--text); font-weight: 600; }
.hl-meta .sep { color: color-mix(in srgb, var(--accent) 60%, var(--text-3)); }
.hl-desc { color: var(--text-2); font-size: 0.96rem; line-height: 1.7; letter-spacing: 0.01em; margin-bottom: 22px; flex: 1; }
.hl-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.hl-tag {
  font-size: 0.76rem; font-weight: 500; padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text-2);
}

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: linear-gradient(var(--emerald), var(--accent-deep)); opacity: 0; transition: opacity 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245,166,35,0.4); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card .metric { font-size: 2.6rem; font-weight: 800; color: var(--emerald-2); letter-spacing: -0.03em; line-height: 1; }
.card .metric-label { font-size: 0.92rem; font-weight: 600; color: var(--text); margin: 10px 0 6px; }
.card .metric-desc { color: var(--text-2); font-size: 0.94rem; }
.card .company { display: inline-block; margin-top: 16px; font-size: 0.78rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== Experience timeline ===== */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--emerald), var(--accent-deep), transparent);
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute; left: -34px; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--emerald); border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.18);
}
.tl-card {
  background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.tl-card:hover { transform: translateX(3px); border-color: rgba(245,166,35,0.4); box-shadow: var(--shadow); }
.tl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.tl-company { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--emerald-2); margin-bottom: 5px; }
.tl-role { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.tl-when { text-align: right; flex-shrink: 0; }
.tl-date { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text); }
.tl-where { display: block; font-size: 0.8rem; color: var(--text-3); margin-top: 3px; }
.tl-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.tl-list li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 0.95rem; line-height: 1.7; letter-spacing: 0.01em; }
.tl-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }

/* ===== Case study index cards ===== */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.case-card:hover { transform: translateY(-4px); border-color: rgba(245,166,35,0.4); box-shadow: var(--shadow); }
.case-card .role { font-size: 0.8rem; color: var(--emerald-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.case-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.case-card p { color: var(--text-2); font-size: 0.95rem; margin-bottom: 20px; flex: 1; }
.case-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { font-size: 0.74rem; padding: 4px 11px; border-radius: 999px; background: var(--emerald-dim); color: var(--emerald-2); font-weight: 500; }
.case-card .read { display: inline-flex; align-items: center; gap: 7px; color: var(--emerald-2); font-weight: 600; font-size: 0.92rem; }
.case-card .read svg { width: 16px; height: 16px; transition: transform 0.2s; }
.case-card:hover .read svg { transform: translateX(4px); }

/* ===== Skills ===== */
.tools-divider { display: flex; align-items: center; gap: 18px; margin: 52px 0 26px; }
.tools-divider span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.tools-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.skill-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.skill-group h3 { font-size: 1.05rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.skill-group h3 .ico { width: 32px; height: 32px; border-radius: 8px; background: var(--emerald-dim); display: grid; place-items: center; color: var(--emerald-2); }
.skill-group h3 .ico svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 7px 14px; border-radius: 8px; background: var(--bg-3);
  border: 1px solid var(--border); color: var(--text-2); font-size: 0.86rem; font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--text); border-color: rgba(245,166,35,0.4); }

.expertise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 44px; }
.exp-pill { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; }
.exp-pill .t { font-weight: 600; font-size: 0.96rem; margin-bottom: 4px; }
.exp-pill .d { color: var(--text-3); font-size: 0.82rem; }

/* ===== Skill pillars (proficiency tiers) ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--emerald), var(--accent-deep)); }
.pillar-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 26px 16px; border-bottom: 1px solid var(--border);
}
.pillar-badge {
  color: var(--emerald-2); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.pillar-years {
  flex-shrink: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 11px; border-radius: 999px;
  background: var(--emerald-dim); border: 1px solid rgba(245,166,35,0.3); color: var(--emerald-2);
}
.pillar .skill-row { padding: 14px 26px; flex: 1 1 auto; }
.skill-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.skill-row:last-child { border-bottom: 0; }
.skill-name { color: var(--text); font-size: 0.92rem; font-weight: 500; line-height: 1.35; }
.prof {
  flex-shrink: 0; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.prof.tier-3 { background: var(--emerald); color: var(--on-accent); }
.prof.tier-2 { background: rgba(245,166,35,0.13); color: var(--emerald-2); border: 1px solid rgba(245,166,35,0.3); }
.prof.tier-1 { background: rgba(255,255,255,0.05); color: var(--text-2); border: 1px solid var(--border); }

/* ===== Contact ===== */
.contact { background: var(--bg); border-top: 1px solid var(--border); }
.contact-card {
  background: linear-gradient(135deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border); border-radius: 20px; padding: 56px 48px; text-align: center; position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%);
  width: 500px; height: 380px; background: radial-gradient(circle, var(--emerald-glow), transparent 60%); filter: blur(30px);
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 14px; }
.contact-card p { color: var(--text-2); max-width: 480px; margin: 0 auto 34px; font-size: 1.05rem; }
.contact-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact-item {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 14px 22px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-weight: 500; font-size: 0.95rem; transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
.contact-item:hover { transform: translateY(-2px); border-color: var(--emerald); box-shadow: 0 8px 22px rgba(0,0,0,0.3); }
.contact-item svg { width: 20px; height: 20px; color: var(--emerald-2); }
.contact-item .meta { text-align: left; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.contact-item .meta .k { display: block; font-size: 0.72rem; color: var(--text-3); }
.contact-item .meta .v { display: block; font-size: 0.92rem; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--text-3); font-size: 0.88rem; }
.footer-inner a { color: var(--text-3); transition: color 0.2s; }
.footer-inner a:hover { color: var(--emerald-2); }
.footer-links { display: flex; gap: 22px; }

/* ===== Case study detail page ===== */
.case-hero { padding: 70px 0 50px; position: relative; overflow: hidden; }
.case-hero::before {
  content: ""; position: absolute; top: -30%; left: -5%; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, var(--emerald-glow), transparent 65%); filter: blur(30px); z-index: 0;
}
.case-hero-inner { position: relative; z-index: 1; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 0.9rem; font-weight: 500; margin-bottom: 28px; transition: color 0.2s; }
.back-link:hover { color: var(--emerald-2); }
.back-link svg { width: 16px; height: 16px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--text-3); font-size: 0.9rem; margin-bottom: 22px; }
.case-meta .sep { color: var(--border); }
.case-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 18px; max-width: 760px; }
.case-hero .summary { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-2); max-width: 720px; }

.result-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 44px 0; }
.result-bar .r { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.result-bar .r .n { font-size: 2rem; font-weight: 800; color: var(--emerald-2); letter-spacing: -0.03em; line-height: 1; }
.result-bar .r .l { color: var(--text-2); font-size: 0.85rem; margin-top: 8px; }

.case-body { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 760px; }
.case-block { margin-bottom: 44px; }
.case-block h2 { font-size: 1.45rem; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.case-block h2 .badge { width: 30px; height: 30px; border-radius: 8px; background: var(--emerald-dim); color: var(--emerald-2); display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
.case-block p { color: var(--text-2); margin-bottom: 14px; font-size: 1.03rem; }
.case-block ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.case-block ul li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 1.0rem; }
.case-block ul li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px;
  background: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-dim);
}
.case-block ul li strong { color: var(--text); font-weight: 600; }

.pull { border-left: 3px solid var(--emerald); padding: 6px 0 6px 22px; margin: 8px 0 24px; }
.pull p { font-size: 1.15rem; color: var(--text); font-style: italic; margin: 0; }

.case-next { border-top: 1px solid var(--border); padding-top: 40px; margin-top: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.case-next .label { color: var(--text-3); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.case-next .title { font-size: 1.2rem; font-weight: 700; }
.case-next a.title:hover { color: var(--emerald-2); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */

/* Tablet (≤860px): hamburger nav + keep two columns before collapsing */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 67px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 8px 0; transform: translateY(-150%); transition: transform 0.3s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 24px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { margin: 10px 24px; text-align: center; justify-content: center; display: block; }
  .nav-toggle { display: block; }

  section { padding: 64px 0; }

  /* 3-col pillars step down to 2 first (not straight to 1) */
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .result-bar { grid-template-columns: repeat(2, 1fr); }

  .hero { padding: 70px 0 60px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .tl-head { flex-direction: column; gap: 6px; }
  .tl-when { text-align: left; }
  .timeline { padding-left: 28px; }
  .tl-marker { left: -28px; }
  .contact-card { padding: 40px 24px; }
  .case-meta { font-size: 0.84rem; }
}

/* Phone (≤600px): single column, tightened hero, stacked contact + footer */
@media (max-width: 600px) {
  .cards, .hl-cards, .case-grid, .skills-grid, .pillars, .result-bar { grid-template-columns: 1fr; }
  .hl-metric .num { font-size: 1.9rem; }
  .prof { font-size: 0.7rem; padding: 3px 10px; }

  section { padding: 52px 0; }

  /* Hero tightening (P2.4) */
  .hero { padding: 54px 0 46px; }
  .hero .status { font-size: 0.76rem; padding: 6px 13px; line-height: 1.45; text-align: left; }
  .hero h1 { font-size: clamp(1.95rem, 8vw, 2.6rem); }
  .hero p.lede { font-size: 1.02rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; justify-content: center; }

  /* Full-width contact pills, even tap targets (P1.2) */
  .contact-methods { flex-direction: column; align-items: stretch; }
  .contact-item { width: 100%; justify-content: flex-start; }

  /* Footer centered & stacked (P2.5) */
  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 12px 20px; }
}

/* Small phone (≤460px): final type trims */
@media (max-width: 460px) {
  .container { padding: 0 18px; }
  .hero-stats { gap: 22px 24px; }
  .hero-stats .stat .num { font-size: 1.6rem; }
  .hl-metric .num { font-size: 1.7rem; }
}
