/* =====================================================================
   AAA Automation — Option 2 (formal engineering style)
   ===================================================================== */

:root {
  --ink: #111c2b;
  --text: #2a3542;
  --muted: #5a6573;
  --faint: #7d8793;
  --line: #d8dee5;
  --line-strong: #b8c1cb;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --navy: #0e2a4d;
  --navy-deep: #0a1f3a;
  --blue: #1b4f8f;
  --blue-dark: #143d70;
  --blue-tint: #eaf0f7;
  --blue-soft: #8fb3e3;
  --grid: rgba(27, 79, 143, .06);
  --grid-major: rgba(27, 79, 143, .11);
  --danger: #b42318;
  --ok: #1e7a4f;
  --radius: 3px;
  --header-h: 72px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
ul, ol { margin: 0; padding: 0; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
main:focus { outline: none; }

.i {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px;
  background: var(--navy); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================= Buttons & links ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .i { width: 17px; height: 17px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-primary[aria-current="page"] { background: var(--navy); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-tint); color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .06); border-color: #fff; color: #fff; }
.btn-sm { min-height: 38px; padding: .45rem 1rem; font-size: .88rem; }
.btn:disabled { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; padding: .25rem 0;
  font: inherit; font-size: .93rem; font-weight: 600; color: var(--blue);
  background: none; border: 0; text-decoration: none; cursor: pointer;
}
.link-arrow .i { width: 16px; height: 16px; }
.link-arrow:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 4px; }

/* ================= Shared components ================= */
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.box h3 { font-size: 1.1rem; }
.box-label {
  margin: 0 0 .9rem; font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.tag {
  padding: .2rem .55rem; font-size: .78rem; font-weight: 500; line-height: 1.4;
  color: var(--text); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 2px;
}

.icon-box {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  color: var(--blue); background: var(--blue-tint); border: 1px solid #c9d7e8; border-radius: 2px;
}
.icon-box .i { width: 22px; height: 22px; }

.org-logo {
  display: grid; grid-template: 100% / 100%; place-items: center; flex-shrink: 0; width: 128px; height: 56px; padding: 8px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.org-logo img { width: 100%; height: 100%; object-fit: contain; }
.org-logo.sm { width: 80px; height: 38px; padding: 5px 8px; }
.org-logo.badge { padding: 3px; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th, .data-table td { padding: .9rem 1.1rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.data-table thead th {
  padding-block: .65rem; background: var(--bg-alt); border-bottom-color: var(--line-strong);
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.data-table tbody tr:last-child > * { border-bottom: 0; }

/* ================= Intro loader ================= */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; background: #fff;
  transition: opacity .45s ease, visibility .45s ease;
}
html.intro .loader, .loader.done { display: grid; }
html.intro { overflow: hidden; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.loader-logo { width: 180px; height: 120.87px; color: var(--ink); fill: currentColor; animation: ld-in .5s ease both; }
.loader-bar { width: 180px; height: 3px; overflow: hidden; background: var(--line); }
.loader-bar span { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; animation: ld-bar 1.3s cubic-bezier(.4, 0, .2, 1) both; }
.loader-text {
  margin: 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
@keyframes ld-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ld-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ================= Top bar & header ================= */
.topbar { background: var(--navy); color: #c9d4e2; font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 36px; }
.topbar-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.topbar ul { display: flex; gap: 1.5rem; list-style: none; }
.topbar a, .topbar li > span { display: inline-flex; align-items: center; gap: .45rem; color: #c9d4e2; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .i { width: 14px; height: 14px; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 2px 10px rgba(14, 42, 77, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { fill: currentColor; }
.brand-mark { width: 44px; height: 26.93px; }
.brand-text { display: flex; flex-direction: column; gap: 7px; }
.brand-word { width: 158px; height: 10px; }
.brand-sub { font-family: var(--mono); font-size: .6rem; font-weight: 500; letter-spacing: .05em; line-height: 1; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.nav-menu { display: flex; align-items: center; gap: .1rem; list-style: none; }
.nav-menu a {
  position: relative; display: block; padding: .5rem .7rem;
  font-size: .92rem; font-weight: 500; color: var(--text); text-decoration: none;
}
.nav-menu a:hover { color: var(--blue); }
.nav-menu a[aria-current="true"] { color: var(--blue); }
.nav-menu a[aria-current="true"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 0; height: 2px; background: var(--blue);
}
.nav-menu .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.menu-toggle {
  display: none; place-items: center; width: 42px; height: 42px; padding: 0; cursor: pointer;
  color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.menu-toggle .i { width: 20px; height: 20px; }

@media (max-width: 1279px) {
  .header-inner { gap: 1rem; }
  .nav-menu a { padding-inline: .5rem; font-size: .9rem; }
  .nav-menu a[aria-current="true"]::after { left: .5rem; right: .5rem; }
}
@media (max-width: 1099px) {
  .menu-toggle { display: inline-grid; }
  .js .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 24px 1.25rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(14, 42, 77, .08);
  }
  .js .nav-menu.open { display: flex; }
  .nav-menu a { padding: .8rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-menu a[aria-current="true"]::after { display: none; }
  .nav-menu .nav-cta { display: block; margin-top: 1rem; }
  .nav-menu .nav-cta a { color: #fff; text-align: center; font-weight: 600; background: var(--blue); border: 0; border-radius: var(--radius); }
  html:not(.js) .nav-menu { flex-wrap: wrap; }
}
@media (max-width: 760px) { .topbar { display: none; } }
@media (max-width: 600px) { .hide-sm { display: none !important; } }
@media (max-width: 370px) { .brand-sub { display: none; } }

/* ================= Sections ================= */
section { padding-block: clamp(3.5rem, 7vw, 5.5rem); scroll-margin-top: var(--header-h); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; max-width: none; }
.section-head.split > div { max-width: 680px; }
.section-num {
  margin: 0 0 .85rem; font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 1rem; background: var(--blue); }
.profile h2::after, .side-stack h2::after, .case-modal h2::after, .form-success h2::after { display: none; }
.lead { margin-top: 1.1rem; font-size: 1.08rem; color: var(--muted); }

/* ================= Hero ================= */
.hero {
  padding-block: clamp(3rem, 6vw, 4.75rem);
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.kicker {
  display: inline-block; margin: 0 0 1.4rem; padding: .35rem .75rem;
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; }
.hero-name, .hero-role { display: block; }
.hero-role { margin-top: .6rem; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 500; letter-spacing: 0; color: var(--blue); }
.hero-statement {
  max-width: 30ch; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line-strong);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 600; line-height: 1.3; color: var(--ink);
}
.hero .lead { max-width: 62ch; }
.hero-copy .btn-row { margin-top: 1.75rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; list-style: none; }
.social-links a { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.social-links a:hover { color: var(--blue); }

.profile {
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(14, 42, 77, .05), 0 10px 28px rgba(14, 42, 77, .07);
}
.profile-bar {
  display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 1.25rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: #c9d4e2; background: var(--navy); border-radius: var(--radius) var(--radius) 0 0;
}
.profile-head { display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem; border-bottom: 1px solid var(--line); }
.profile-head .photo { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; }
.profile-head h2 { font-size: 1.3rem; }
.profile-head p { margin: .25rem 0 0; font-size: .93rem; color: var(--muted); }
.spec { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec th, .spec td { padding: .65rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec th {
  width: 32%; padding-top: .8rem; font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.spec tr:last-child > * { border-bottom: 0; }

/* ================= Key facts ================= */
.facts-band { padding-block: 2.5rem 3rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat { padding: 1.4rem 1.5rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { display: block; font-size: 2.2rem; font-weight: 600; line-height: 1.1; color: var(--blue); }
.stat-label { display: block; margin-top: .35rem; font-size: .86rem; color: var(--muted); }
.logos { margin-top: 2rem; }
.logos-label {
  margin: 0 0 .9rem; font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.logo-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .75rem; list-style: none; }
.logo-strip .org-logo { width: auto; height: 60px; }

/* ================= 01 Highlights ================= */
.hl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.hl { display: flex; flex-direction: column; }
.hl.wide { grid-column: span 2; }
.hl-metric { margin-bottom: 1rem; font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--blue); }
.hl-metric.word { font-size: 1.9rem; }
.hl h3 { margin-bottom: .5rem; }
.hl p { font-size: .95rem; color: var(--muted); }
.hl .tags { margin-bottom: 1rem; }
.hl-foot {
  display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.hl-foot .i { width: 15px; height: 15px; }

/* ================= 02 About ================= */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-copy p { max-width: 68ch; }
.focus-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.5rem; list-style: none;
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.focus-list li { display: flex; align-items: center; gap: .55rem; font-size: .95rem; font-weight: 500; color: var(--ink); }
.focus-list .i { color: var(--blue); }
.stack { display: grid; gap: 1.25rem; }
.brand-box-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand-logo { width: 124px; height: 83.27px; color: var(--ink); fill: currentColor; }
.founder { display: flex; align-items: center; gap: .8rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.founder img { width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; }
.founder strong { display: block; }
.founder span { display: block; font-size: .88rem; color: var(--muted); }
.now-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.now-role { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.now-company { margin: 0; font-weight: 500; color: var(--blue); }
.principles { display: grid; gap: 1rem; list-style: none; }
.principles li { display: grid; grid-template-columns: auto 1fr; gap: .85rem; }
.principles .num, .steps li::before {
  display: grid; place-items: center; width: 34px; height: 28px;
  font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--blue);
  border: 1px solid var(--line-strong); border-radius: 2px;
}
.principles strong, .steps strong { display: block; }
.principles span, .steps span { display: block; font-size: .9rem; color: var(--muted); }

/* ================= 03 Experience ================= */
.exp-list { list-style: none; border-top: 2px solid var(--ink); }
.exp { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; padding-block: 2rem; border-bottom: 1px solid var(--line-strong); }
.exp-meta { display: flex; flex-direction: column; gap: 1rem; }
.exp-date { font-family: var(--mono); font-size: .82rem; font-weight: 500; color: var(--ink); }
.exp-place { margin-top: .2rem; font-size: .88rem; color: var(--muted); }
.exp-body h3 { font-size: 1.25rem; }
.exp-company { margin-top: .2rem; font-weight: 600; color: var(--blue); }
.exp-body > p { margin-top: .75rem; color: var(--muted); }
.wins { margin: .25rem 0 1.1rem; padding-left: 1.1rem; list-style: square; }
.wins li { margin-bottom: .4rem; padding-left: .25rem; }
.wins li::marker { color: var(--blue); }

/* ================= 04 Projects ================= */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter {
  padding: .5rem .9rem; font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer;
  color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.project { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.project[hidden] { display: none; }
.proj-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.25rem; background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.proj-icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  color: var(--blue); background: #fff; border: 1px solid var(--line-strong); border-radius: 2px;
}
.proj-icon .i { width: 20px; height: 20px; }
.proj-body { display: flex; flex: 1; flex-direction: column; gap: .75rem; padding: 1.25rem; }
.proj-kicker {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.proj-kicker .cat { font-weight: 500; color: var(--blue); }
.project h3 { font-size: 1.1rem; }
.project p { margin: 0; font-size: .93rem; color: var(--muted); }
.proj-links { margin-top: auto; padding-top: .25rem; }
.project.featured { grid-column: 1 / -1; flex-direction: row; }
.project.featured .proj-head {
  flex-direction: column; justify-content: center; gap: 1rem; width: 240px; flex-shrink: 0;
  border-bottom: 0; border-right: 1px solid var(--line);
}
.project.featured .proj-icon { width: 64px; height: 64px; }
.project.featured .proj-icon .i { width: 30px; height: 30px; }
.project.featured .proj-body { padding: 1.5rem 1.75rem; }
.project.featured h3 { font-size: 1.3rem; }

.case-modal {
  width: min(760px, calc(100% - 2rem)); max-height: calc(100% - 3rem); padding: 0;
  color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(14, 42, 77, .28);
}
.case-modal::backdrop { background: rgba(10, 22, 38, .55); }
.modal-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.modal-head .section-num { margin-bottom: .35rem; }
.modal-head h2 { font-size: 1.35rem; }
.modal-close {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; cursor: pointer;
  color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 2px;
}
.modal-body { padding: 1.5rem; }
.modal-body h3 { margin: 1.5rem 0 .5rem; font-size: 1.02rem; }
.modal-body ul { padding-left: 1.1rem; list-style: square; }
.modal-body li { margin-bottom: .35rem; }
.modal-body li::marker { color: var(--blue); }
.case-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.modal-body ul.tags { padding-left: 0; list-style: none; }
.modal-body .tags li { margin: 0; }

/* ================= 05 Services ================= */
.engage { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; margin-top: 1.4rem; list-style: none; }
.engage li { display: inline-flex; align-items: center; gap: .5rem; font-size: .93rem; font-weight: 500; color: var(--ink); }
.engage .i { color: var(--blue); }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.service { display: flex; flex-direction: column; }
.service .icon-box { margin-bottom: 1.1rem; }
.service h3 { margin-bottom: .5rem; }
.service p { font-size: .95rem; color: var(--muted); }
.checklist { display: grid; gap: .45rem; margin-top: auto; padding-top: 1rem; list-style: none; border-top: 1px solid var(--line); }
.checklist li { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; color: var(--ink); }
.checklist .i { width: 16px; height: 16px; margin-top: .2rem; color: var(--blue); }
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: 1.5rem; padding: 1.4rem 1.75rem; color: #d5deea; background: var(--navy); border-radius: var(--radius);
}
.cta-band p { margin: 0; }
.cta-band strong { color: #fff; }

/* ================= 06 Skills ================= */
.skills-table tbody th { width: 280px; font-weight: 600; color: var(--ink); }
.skills-table td, .skills-table tbody th { padding-block: 1.1rem; }
.cell-title { display: flex; align-items: center; gap: .65rem; }
.cell-title .i { color: var(--blue); }

/* ================= 07 Education ================= */
.edu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; align-items: start; }
.col-title {
  margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--ink);
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.edu-list { display: grid; gap: 1rem; }
.edu-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.edu-years {
  padding: .2rem .5rem; font-family: var(--mono); font-size: .76rem; color: var(--ink);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 2px; white-space: nowrap;
}
.edu-school { margin-top: .15rem; font-weight: 600; color: var(--blue); }
.edu-major { margin: .25rem 0 .9rem; font-size: .93rem; color: var(--muted); }
.cert-table td { padding-block: .6rem; }
.cert-no { width: 56px; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.cert-name { font-weight: 500; color: var(--ink); }
.cert-issuer { display: flex; align-items: center; gap: .65rem; font-size: .86rem; color: var(--muted); }
.cert-issuer .org-logo.sm { width: 60px; height: 30px; padding: 3px 6px; }
.cert-icon { color: var(--blue); }
.cert-icon .i { width: 18px; height: 18px; }

/* ================= 08 Recognition ================= */
.recog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.recog-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.recog-list { display: grid; gap: 1rem; list-style: none; }
.recog-list li { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.recog-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.recog-list strong { display: block; }
.recog-list .yr { font-family: var(--mono); font-size: .74rem; color: var(--blue); }
.recog-list .src { display: block; font-size: .88rem; color: var(--muted); }
.recog-list .org-logo { margin-top: .75rem; }

/* ================= 09 Résumé ================= */
.resume-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding: clamp(1.5rem, 3vw, 2.25rem); }
.resume-panel .btn-row { margin-top: 1.5rem; }
.glance { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.glance div { display: grid; grid-template-columns: 140px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.glance div:last-child { border-bottom: 0; }
.glance dt {
  padding: .75rem 1rem; background: var(--bg-alt); border-right: 1px solid var(--line);
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.glance dd { margin: 0; padding: .7rem 1rem; font-size: .92rem; color: var(--ink); }

/* ================= 10 Contact ================= */
.contact {
  color: #c9d4e2; background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.contact-inner { max-width: 820px; }
.contact .section-num { color: var(--blue-soft); }
.contact h2 { color: #fff; }
.contact h2::after { background: var(--blue-soft); }
.contact .lead { color: #c9d4e2; }
.contact .btn-row { margin-top: 1.75rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin-top: 1.75rem; list-style: none; }
.contact-links a, .contact-links li > span { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; color: #fff; text-decoration: none; }
.contact-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ================= Footer ================= */
.site-footer { font-size: .9rem; color: #9fb0c6; background: var(--navy-deep); }
.site-footer a { color: #c9d4e2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2.25rem; }
.footer-logo { width: 120px; height: 80.58px; color: #fff; fill: currentColor; }
.footer-brand p { max-width: 36ch; margin: 1.1rem 0 0; }
.footer-title {
  margin: 0 0 .9rem; font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.footer-list { display: grid; gap: .5rem; list-style: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.25rem;
}
.footer-top + .footer-bottom {
  background: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)) center top / calc(100% - 48px) 1px no-repeat;
}
.footer-bottom p { margin: 0; }
.footer-end { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.title-block { display: flex; font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, .22); }
.title-block span { padding: .3rem .65rem; }
.title-block span + span { border-left: 1px solid rgba(255, 255, 255, .22); }
.title-block b { font-weight: 500; color: #fff; }
.to-top { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; }
.to-top .i { width: 15px; height: 15px; }

/* ================= Toast ================= */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; padding: .7rem 1.1rem;
  font-size: .9rem; font-weight: 500; color: #fff; background: var(--navy); border-radius: var(--radius);
  opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= Request information page ================= */
.page-hero { padding-block: 2.25rem 3rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; list-style: none; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.page-hero h1 { max-width: 24ch; font-size: clamp(2rem, 4vw, 2.75rem); }
.page-hero h1::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 1rem; background: var(--blue); }
.page-hero .lead { max-width: 64ch; }

.request-section { padding-block: 3rem 4.5rem; }
.request-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.form-box { padding: 0; }
.form-box-head {
  display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.5rem;
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: #c9d4e2; background: var(--navy); border-radius: var(--radius) var(--radius) 0 0;
}
.request-form { padding: 1.75rem 1.5rem 1.5rem; }
.form-section { min-width: 0; margin: 0 0 1.75rem; padding: 0; border: 0; }
.form-legend {
  display: flex; align-items: center; gap: .6rem; width: 100%; margin-bottom: 1.25rem; padding: 0 0 .6rem;
  font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--line-strong);
}
.legend-num { color: var(--blue); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field.full { grid-column: 1 / -1; }
.field-label { display: block; margin-bottom: .4rem; padding: 0; font-size: .9rem; font-weight: 600; color: var(--ink); }
.req { margin-left: .15rem; color: var(--danger); }
.opt { font-size: .85rem; font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: 44px; padding: .6rem .75rem;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #98a1ac; }
.input:hover { border-color: #8f9aa6; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 79, 143, .18); }
textarea.input { min-height: 150px; line-height: 1.5; resize: vertical; }
.select { position: relative; }
.select select { padding-right: 2.5rem; cursor: pointer; -webkit-appearance: none; appearance: none; }
.select::after {
  content: ""; position: absolute; top: 50%; right: 1rem; width: 8px; height: 8px; pointer-events: none;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.field-error { margin: .35rem 0 0; font-size: .85rem; font-weight: 500; color: var(--danger); }
.field-error:empty { display: none; }
.field-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: .35rem; }
.hint { margin: 0; font-size: .82rem; color: var(--muted); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.option {
  display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; cursor: pointer;
  font-size: .93rem; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .15s ease, background-color .15s ease;
}
.option:hover { border-color: #8f9aa6; }
.option input { width: 17px; height: 17px; margin: 0; flex-shrink: 0; accent-color: var(--blue); }
.option:has(input:checked) { background: var(--blue-tint); border-color: var(--blue); }
.option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.option input:focus-visible { outline: none; }
#type-group[aria-invalid="true"] .option { border-color: var(--danger); }
.consent { display: flex; align-items: flex-start; gap: .65rem; font-size: .93rem; color: var(--ink); cursor: pointer; }
.consent input { width: 17px; height: 17px; margin: .2rem 0 0; flex-shrink: 0; accent-color: var(--blue); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 1px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.privacy { display: flex; align-items: flex-start; gap: .5rem; max-width: 42ch; margin: 0; font-size: .85rem; color: var(--muted); }
.privacy .i { width: 15px; height: 15px; margin-top: .2rem; }
.form-status { margin: 1rem 0 0; font-size: .92rem; font-weight: 600; color: var(--danger); }
.form-status:empty { display: none; }
.form-success { padding: 3rem 1.5rem; text-align: center; }
.form-success[hidden] { display: none; }
.success-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.25rem;
  color: var(--ok); border: 2px solid var(--ok); border-radius: 50%;
}
.success-icon .i { width: 28px; height: 28px; stroke-width: 2.25; }
.form-success h2 { font-size: 1.6rem; }
.form-success h2:focus { outline: none; }
.form-success p { max-width: 52ch; margin: 1rem auto 0; color: var(--muted); }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
.side-stack { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.side-stack h2 { margin-bottom: 1rem; font-size: 1.1rem; }
.steps { display: grid; gap: 1rem; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: .85rem; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); }
.direct { list-style: none; }
.direct a, .direct li > span {
  display: flex; align-items: center; gap: .65rem; padding: .65rem 0;
  font-size: .93rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.direct li:last-child a, .direct li:last-child > span { border-bottom: 0; }
.direct a:hover { color: var(--blue); }
.direct .i { color: var(--blue); }
.side-stack .founder { margin-top: 1rem; }

/* ================= Responsive ================= */
@media (max-width: 1000px) {
  .logo-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .request-grid { grid-template-columns: 1fr; }
  .side-stack { position: static; }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid, .edu-grid, .resume-panel { grid-template-columns: 1fr; }
  .profile { max-width: 540px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hl-grid, .services-grid, .recog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .exp { grid-template-columns: 1fr; gap: 1rem; }
  .exp-meta { flex-direction: row; align-items: center; justify-content: space-between; }
  .exp-meta .org-logo { width: 104px; height: 46px; }
  .project.featured { flex-direction: column; }
  .project.featured .proj-head { flex-direction: row; width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .project.featured .proj-icon { width: 40px; height: 40px; }
  .project.featured .proj-icon .i { width: 20px; height: 20px; }
  .project.featured .proj-body { padding: 1.25rem; }
}
@media (max-width: 640px) {
  .projects-grid, .hl-grid, .services-grid, .recog-grid { grid-template-columns: 1fr; }
  .hl.wide { grid-column: auto; }
  .field-grid, .options { grid-template-columns: 1fr; }
  .request-form { padding: 1.5rem 1.25rem 1.25rem; }
  .form-box-head { padding-inline: 1.25rem; }
  .focus-list { grid-template-columns: 1fr; }
  .skills-table thead { display: none; }
  .skills-table, .skills-table tbody, .skills-table tr, .skills-table th, .skills-table td { display: block; width: auto; }
  .skills-table tbody th { padding-bottom: .4rem; border-bottom: 0; }
  .skills-table td { padding-top: 0; }
  .skills-table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--line); }
  .cert-table thead { display: none; }
  .cert-table tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  .cert-table tbody tr:last-child { border-bottom: 0; }
  .cert-table td { border-bottom: 0; padding: .6rem .75rem 0; }
  .cert-table td:nth-child(3) { grid-column: 2; padding-bottom: .7rem; }
  .cert-no { width: auto; padding-bottom: .7rem; }
  .glance div { grid-template-columns: 112px minmax(0, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .kicker { font-size: .66rem; letter-spacing: .03em; }
  .logo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 1.1rem 1rem; }
  .stat-value { font-size: 1.9rem; }
  .hero-copy .btn-row .btn { width: 100%; }
  .title-block { display: none; }
}

/* ================= Print ================= */
@media print {
  .topbar, .site-header, .loader, .skip-link, .btn, .btn-row, .filters, .proj-links, .cta-band,
  .toast, .case-modal, .social-links, .breadcrumb, .contact-links, .title-block, .to-top { display: none !important; }
  body { font-size: 11pt; color: #000; }
  section { padding-block: 1.25rem; }
  .hero, .section-alt, .contact { background: none !important; border: 0; }
  .contact, .contact .lead, .contact h2 { color: #000; }
  .site-footer { color: #000; background: none; }
  .site-footer a { color: #000; }
  .footer-logo { color: #000; }
  .box, .project, .exp, .edu-item, tr { break-inside: avoid; }
  .profile { box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}
