/* May Ann E. Aldemita — portfolio. Palette follows the LinkedIn banner: navy, teal, gold on cream. */
:root {
  --navy-950: #08141f;
  --navy-900: #0b1c2c;
  --navy-800: #10283c;
  --teal-700: #0f4c5c;
  --teal-600: #1f5f70;
  --teal-100: #e3eff1;
  --gold-500: #d8a63a;
  --gold-600: #c48321;
  --gold-800: #8a5a10;
  --cream-50: #fbf8f2;
  --cream-100: #f4eee3;
  --ink-900: #17212b;
  --ink-700: #3a4652;
  --ink-500: #5d6874;
  --line: #e4ddd0;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 28, 44, .06), 0 8px 24px rgba(11, 28, 44, .08);
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink-900);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 20, 31, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { color: var(--white); text-decoration: none; font: 700 16px/1 var(--font-head); letter-spacing: .01em; white-space: nowrap; }
.brand span { color: var(--gold-500); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #c9d4dd; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
@media (max-width: 640px) { .nav a.hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(31, 95, 112, .55), transparent 60%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 45%, #0d3240 100%);
  color: var(--white);
  padding: 56px 0 64px;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -1px -10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent); opacity: .5;
}
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1fr 300px; gap: 56px; } .hero { padding: 88px 0 96px; } }
.eyebrow { font: 600 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); margin: 0 0 16px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; }
.hero .role { font: 700 clamp(20px, 3vw, 28px)/1.25 var(--font-head); color: #e9eef2; margin: 10px 0 18px; }
.hero .lede { color: #b9c6d1; font-size: 18px; max-width: 620px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; padding: 0; list-style: none; }
.chips li { font-size: 13px; font-weight: 600; color: #e7d6ad; border: 1px solid rgba(216, 166, 58, .45); background: rgba(216, 166, 58, .08); padding: 5px 11px; border-radius: 999px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font-body); text-decoration: none; padding: 13px 20px; border-radius: 10px; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: #e4b552; color: var(--navy-950); }
.btn-ghost { color: var(--white); border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.btn svg { width: 18px; height: 18px; }
.portrait { justify-self: center; position: relative; width: min(260px, 70vw); }
.portrait img { border-radius: 50%; border: 4px solid rgba(255, 255, 255, .9); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); aspect-ratio: 1; object-fit: cover; }
.portrait .badge { position: absolute; right: -6px; bottom: 14px; background: var(--white); color: var(--navy-900); font: 700 12px/1.2 var(--font-body); padding: 8px 12px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }
.portrait .badge::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2bb673; margin-right: 6px; vertical-align: 1px; }
@media (max-width: 879px) { .portrait { order: -1; width: 170px; } .portrait .badge { right: -30px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -32px; position: relative; z-index: 2; box-shadow: var(--shadow); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--white); padding: 20px 18px; }
.stat b { display: block; font: 800 28px/1.1 var(--font-head); color: var(--teal-700); }
.stat span { font-size: 14px; color: var(--ink-500); line-height: 1.4; display: block; margin-top: 4px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 72px 0; }
.section.alt { background: var(--cream-100); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .eyebrow { color: var(--gold-800); }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: var(--navy-900); }
.section-head p { color: var(--ink-700); margin-top: 12px; }

/* ---------- Services ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-700); margin-bottom: 14px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; color: var(--navy-900); margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--ink-700); margin: 0; }

/* ---------- Case studies ---------- */
.case > *, .hero-grid > *, .two-col > * { min-width: 0; }
.case { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 24px; box-shadow: var(--shadow); }
@media (min-width: 940px) { .case { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 36px; gap: 40px; } .case.flip .case-visual { order: -1; } }
.case .tag { display: inline-block; font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); background: var(--teal-100); padding: 6px 10px; border-radius: 6px; margin-bottom: 14px; }
.case h3 { font-size: clamp(22px, 2.6vw, 28px); color: var(--navy-900); margin-bottom: 8px; }
.case .context { color: var(--ink-500); font-size: 15px; margin-bottom: 18px; }
.case dl { margin: 0; display: grid; gap: 14px; }
.case dt { font: 700 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-800); margin-bottom: 4px; }
.case dd { margin: 0; color: var(--ink-700); font-size: 16px; }
.case dd ul { display: grid; gap: 4px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.tools li { font-size: 12.5px; font-weight: 600; color: var(--ink-700); background: var(--cream-100); border: 1px solid var(--line); padding: 4px 9px; border-radius: 6px; }
.case-visual figure { margin: 0; }
.case-visual figcaption { font-size: 12.5px; color: var(--ink-500); margin-top: 8px; text-align: center; }

/* Illustration windows (sample data only) */
.win { background: var(--white); border: 1px solid #d9dee3; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(11, 28, 44, .10); font-size: 12.5px; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef1f4; border-bottom: 1px solid #dfe4e8; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd6dc; }
.win-bar b { margin-left: 8px; font: 600 12px/1 var(--font-body); color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: #f7f8fa; border-bottom: 1px solid #e5e9ed; overflow-x: auto; }
.win-tabs span { padding: 6px 10px; border-radius: 6px 6px 0 0; color: var(--ink-500); white-space: nowrap; font-weight: 500; }
.win-tabs span.on { background: var(--white); color: var(--teal-700); font-weight: 700; border: 1px solid #e5e9ed; border-bottom-color: var(--white); margin-bottom: -1px; }
.win-body { padding: 12px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; min-width: 380px; }
.tbl th { text-align: left; font-weight: 700; color: var(--ink-700); background: #f3f6f8; padding: 7px 8px; border-bottom: 1px solid #e1e6ea; white-space: nowrap; }
.tbl td { padding: 7px 8px; border-bottom: 1px solid #eef1f3; color: var(--ink-700); white-space: nowrap; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 11px; }
.pill.ok { background: #e3f5ec; color: #17734a; }
.pill.warn { background: #fdf1dc; color: #8a5a10; }
.pill.bad { background: #fde7e4; color: #a33a2b; }
.pill.info { background: var(--teal-100); color: var(--teal-700); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border: 1px solid #eef1f3; border-radius: 8px; color: var(--ink-700); }
.checks li .pill { flex: none; margin-top: 1px; }
.flow { display: grid; gap: 8px; }
.flow .step { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #eef1f3; border-radius: 8px; }
.flow .step .n { width: 24px; height: 24px; border-radius: 6px; background: var(--teal-100); color: var(--teal-700); display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none; }
.flow .step .t { flex: 1; color: var(--ink-700); }
.flow .arrow { text-align: center; color: #b7c1ca; line-height: 1; font-size: 14px; }

/* ---------- Social gallery ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 12px 14px; font-size: 14px; color: var(--ink-700); }
.gallery figcaption b { display: block; color: var(--navy-900); font-size: 15px; }
.plan { margin-top: 24px; display: grid; gap: 16px; }
@media (min-width: 900px) { .plan { grid-template-columns: repeat(3, 1fr); } }
.plan .card h3 { font-size: 16px; }
.plan .card ul { font-size: 14.5px; color: var(--ink-700); display: grid; gap: 4px; }
.note { font-size: 14px; color: var(--ink-500); margin-top: 16px; }
.note-tight { margin: 10px 2px 0; }

/* ---------- Projects ---------- */
.projects { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .projects { grid-template-columns: repeat(2, 1fr); } }
.project { background: var(--navy-900); color: #d6dee5; border-radius: var(--radius); padding: 24px; border: 1px solid #1b3448; position: relative; overflow: hidden; }
.project::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--gold-500), var(--teal-600)); }
.project h3 { color: var(--white); font-size: 19px; margin-bottom: 8px; }
.project .status { display: inline-block; font: 700 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 10px; }
.project p { font-size: 15px; margin-bottom: 12px; }
.project ul { font-size: 14.5px; display: grid; gap: 4px; color: #b9c6d1; }
.project .tools li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #dfe7ee; }

/* ---------- Experience ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 26px 24px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--cream-50); border: 3px solid var(--teal-700); }
.timeline li.now::before { background: var(--gold-500); border-color: var(--gold-500); }
.timeline .yrs { font: 700 13px/1 var(--font-body); color: var(--gold-800); letter-spacing: .04em; }
.timeline h3 { font-size: 18px; color: var(--navy-900); margin: 6px 0 2px; }
.timeline .org { color: var(--ink-500); font-size: 15px; margin-bottom: 6px; }
.timeline p { color: var(--ink-700); font-size: 15.5px; margin: 0; max-width: 760px; }
.two-col { display: grid; gap: 40px; }
@media (min-width: 940px) { .two-col { grid-template-columns: 1.4fr 1fr; } }
.side h3 { font-size: 17px; color: var(--navy-900); margin-bottom: 10px; }
.side ul { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 28px; }
.side li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; color: var(--ink-700); }
.side li b { display: block; color: var(--navy-900); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(135deg, var(--navy-950), #0d3240); color: var(--white); padding: 72px 0; text-align: center; }
.contact h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.contact p { color: #b9c6d1; max-width: 600px; margin: 14px auto 26px; }
.contact .btns { justify-content: center; }
.site-footer { background: var(--navy-950); color: #8796a3; font-size: 13.5px; padding: 22px 0; text-align: center; }
.site-footer a { color: #b9c6d1; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media print { .site-header, .contact .btns { display: none; } .hero, .contact { background: var(--navy-900) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
