:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5d6875;
  --subtle: #eef2f4;
  --paper: #f7f8f8;
  --surface: #ffffff;
  --line: #d9e0e4;
  --navy: #1f3a4a;
  --teal: #1e7a78;
  --teal-dark: #135958;
  --gold: #b68b2d;
  --shadow: 0 16px 45px rgba(23, 32, 42, 0.08);
  --radius: 6px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 76px;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(31, 58, 74, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 58, 74, 0.035) 1px, transparent 1px);
  background-position: top center;
  background-size: 28px 28px;
  color: var(--ink);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 1.15rem;
  font-size: clamp(2.25rem, 4.2vw, 4.05rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 0.95rem;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 780;
}

h3 {
  font-size: 1.18rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(1rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(217, 224, 228, 0.9);
  background: rgba(247, 248, 248, 0.93);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  font-size: 0.9rem;
  font-weight: 720;
}

.site-nav a {
  padding: 0.52rem 0.72rem;
  border-radius: var(--radius);
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: var(--subtle);
}

.site-nav .nav-button {
  margin-left: 0.3rem;
  color: #fff;
  background: var(--navy);
}

.menu-toggle {
  display: none;
  min-height: 40px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-weight: 800;
}

.hero,
.section,
.page-hero {
  width: min(1180px, calc(100% - 2rem));
  margin-right: auto;
  margin-left: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: clamp(2.2rem, 5.5vw, 4.75rem) 0;
}


.hero-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(217, 224, 228, 0.95);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  border-color: rgba(30, 122, 120, 0.45);
  color: var(--teal-dark);
  background: var(--subtle);
}

.trash-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 17px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.trash-icon::before,
.trash-icon::after {
  position: absolute;
  content: "";
  background: currentColor;
}

.trash-icon::before {
  top: -6px;
  left: -3px;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  box-shadow: 5px -3px 0 -1px currentColor;
}

.trash-icon::after {
  top: 3px;
  left: 5px;
  width: 2px;
  height: 9px;
  border-radius: 999px;
  box-shadow: -4px 0 0 currentColor, 4px 0 0 currentColor;
}

.profile-card,
.experience-card,
.credential-groups article,
.tool-card,
.utility-panel,
.metrics-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-card {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.profile-card > img {
  width: min(250px, 72%);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 auto;
  border: 6px solid var(--subtle);
  border-radius: 50%;
}

.profile-card h2 {
  margin-bottom: 0.2rem;
  font-size: 1.45rem;
}

.profile-card p,
.profile-card dd {
  color: var(--muted);
}

.profile-card dl {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.profile-card dt {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-card dd {
  margin: 0;
}

.section {
  padding: clamp(3.4rem, 7vw, 6rem) 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.6rem, 5vw, 4rem);
}

.prose {
  max-width: 780px;
  color: var(--muted);
}

.prose p {
  font-size: 1.03rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.metrics-grid article {
  position: relative;
  min-height: 220px;
  padding: 1.35rem;
}

.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border: 1px solid rgba(30, 122, 120, 0.24);
  border-radius: var(--radius);
  color: var(--teal-dark);
  background:
    linear-gradient(135deg, rgba(30, 122, 120, 0.12), rgba(182, 139, 45, 0.13)),
    var(--surface);
}

.metric-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metrics-grid span,
.tool-card span,
.education-date,
.role-list span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metrics-grid strong {
  display: block;
  margin: 0.45rem 0 0.65rem;
  font-size: 1.35rem;
}

.metrics-grid p,
.tool-card p,
.experience-card p,
.experience-card li,
.credential-groups li,
.education-list p {
  color: var(--muted);
}

.highlight-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf5f4;
}

.tool-links,
.link-band {
  display: grid;
  gap: 0.75rem;
}

.tool-links a,
.link-band a {
  display: block;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tool-links strong {
  display: block;
  margin-bottom: 0.25rem;
}

.tool-links span {
  color: var(--muted);
}

.link-band {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-top: 0;
}

.link-band a {
  min-height: 84px;
  font-weight: 850;
}

.page-hero {
  position: relative;
  padding: clamp(3.2rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  padding-bottom: 2.2rem;
}

.page-hero p:not(.eyebrow) {
  max-width: 860px;
  color: var(--muted);
  font-size: 1.08rem;
}

.timeline-section,
.education-list,
.credential-groups,
.tool-grid {
  display: grid;
  gap: 1rem;
}

.experience-card,
.credential-groups article,
.utility-panel {
  padding: clamp(1.15rem, 3vw, 1.75rem);
}

.experience-card.major {
  border-color: rgba(30, 122, 120, 0.28);
}

.experience-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 1rem;
  align-items: center;
}

.experience-top img {
  width: min(260px, 100%);
  height: auto;
  object-fit: contain;
  justify-self: end;
  max-height: 120px;
}

.org-logo {
  width: min(240px, 100%);
}

.square-logo {
  max-height: 96px;
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.role-list span {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--subtle);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.capability-grid span {
  min-height: 54px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fbfcfc;
  font-weight: 780;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.detail-columns section {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.role-title,
.institution {
  color: var(--ink) !important;
  font-weight: 850;
}

.education-list article {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 150px;
  gap: 1.25rem;
  align-items: start;
  padding: clamp(1.15rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.education-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.education-logo {
  width: min(130px, 100%);
  height: auto;
  max-height: 120px;
  object-fit: contain;
  justify-self: end;
  opacity: 0.92;
}

.course-note {
  font-size: 0.95rem;
}

.detail-list {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.detail-list li + li {
  margin-top: 0.4rem;
}

.credential-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.credential-groups .wide {
  grid-column: 1 / -1;
}

.credential-groups ul {
  margin: 0;
  padding-left: 1.2rem;
}

.credential-groups li + li {
  margin-top: 0.6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 148px;
  padding: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  content: "";
  background-image: repeating-linear-gradient(90deg, rgba(30, 122, 120, 0.55) 0 24px, rgba(182, 139, 45, 0.55) 24px 34px, rgba(31, 58, 74, 0.4) 34px 48px);
}

.contact-card:hover {
  border-color: rgba(30, 122, 120, 0.45);
  transform: translateY(-2px);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(30, 122, 120, 0.26);
  border-radius: var(--radius);
  color: var(--teal-dark);
  background:
    linear-gradient(135deg, rgba(30, 122, 120, 0.12), rgba(182, 139, 45, 0.13)),
    #fff;
  font-weight: 900;
}

.contact-card h2 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.credential-groups .honors {
  color: #fff;
  background: var(--navy);
}

.credential-groups .honors h2,
.credential-groups .honors li {
  color: #fff;
}

.credential-groups .honors p,
.credential-groups .honors span {
  color: rgba(255, 255, 255, 0.78);
}

.certificate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.certificate-list div {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.honors .certificate-list div {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.certificate-list strong,
.certificate-list span {
  display: block;
}

.certificate-list strong {
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.certificate-list span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 1.35rem;
}

.tool-card::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  content: attr(data-icon);
  border: 1px solid rgba(30, 122, 120, 0.24);
  border-radius: var(--radius);
  color: var(--teal-dark);
  background:
    linear-gradient(135deg, rgba(30, 122, 120, 0.12), rgba(182, 139, 45, 0.13)),
    var(--surface);
  font-size: 0.85rem;
  font-weight: 900;
}

.tool-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  content: "";
  background-image: repeating-linear-gradient(90deg, rgba(30, 122, 120, 0.55) 0 18px, rgba(182, 139, 45, 0.55) 18px 26px, rgba(31, 58, 74, 0.4) 26px 38px);
}

.tool-card:hover {
  border-color: rgba(30, 122, 120, 0.45);
  transform: translateY(-2px);
}

.tool-card.muted {
  box-shadow: none;
  background: #f0f3f4;
}

.tool-page {
  max-width: 940px;
}

.report-page {
  max-width: 1180px;
}

.utility-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.2rem;
}

.utility-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--navy));
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.converter-panel .field-grid {
  grid-template-columns: minmax(120px, 0.65fr) 1fr 1fr;
}

label span,
.progress-stack span,
.timer-readout span,
.converter-result span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.phase-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-grid div {
  min-height: 104px;
  padding: 1rem;
  border: 1px solid rgba(217, 224, 228, 0.82);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(30, 122, 120, 0.06), rgba(182, 139, 45, 0.05)),
    var(--subtle);
}

.result-grid span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-grid sub {
  font-size: 0.68em;
  line-height: 0;
  vertical-align: sub;
}

.result-grid strong {
  display: block;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.2;
}

.timer-readout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 0.75rem;
}

.timer-readout div,
.converter-result {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--subtle);
}

.timer-readout strong,
.converter-result strong {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.progress-stack {
  display: grid;
  gap: 0.85rem;
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe7e9;
}

.progress-track div {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.converter-result {
  min-height: 105px;
}

.utility-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.input-table,
.report-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.input-table th,
.input-table td,
.report-table th,
.report-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.input-table th:last-child,
.input-table td:last-child {
  width: 54px;
  text-align: center;
}

.input-table th,
.report-table th {
  color: var(--teal-dark);
  background: #f2f6f6;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.input-table tr:last-child td,
.report-table tr:last-child td {
  border-bottom: 0;
}

.input-table input {
  min-height: 42px;
}

.chart-panel {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(31, 58, 74, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 58, 74, 0.028) 1px, transparent 1px),
    #fff;
  background-size: 24px 24px;
}

.chart-panel canvas {
  width: 100%;
  min-height: 420px;
  border: 1px solid rgba(217, 224, 228, 0.9);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem max(1rem, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(217, 224, 228, 0.95);
  color: var(--muted);
  background: rgba(247, 248, 248, 0.94);
  backdrop-filter: blur(16px);
  font-weight: 780;
}

.site-footer p {
  margin: 0;
  white-space: nowrap;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-footer a {
  padding: 0.35rem 0.52rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer a:hover {
  color: var(--ink);
  background: var(--subtle);
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 1px) 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .nav-button {
    margin-left: 0;
  }

  .hero,
  .two-column,
  .highlight-panel,
  .experience-top {
    grid-template-columns: 1fr;
  }

  .experience-top img,
  .education-logo {
    justify-self: start;
  }

  .hero {
    min-height: auto;
  }

  .metrics-grid,
  .tool-grid,
  .link-band,
  .capability-grid,
  .certificate-list,
  .phase-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .hero {
    padding-top: 2.6rem;
  }

  .metrics-grid,
  .tool-grid,
  .link-band,
    .capability-grid,
    .credential-groups,
    .certificate-list,
    .detail-columns,
    .contact-grid,
    .field-grid,
    .result-grid,
    .phase-results,
    .converter-panel .field-grid,
    .timer-readout,
    .education-list article {
    grid-template-columns: 1fr;
  }

  .site-footer {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  body {
    padding-bottom: 0;
  }
}
