:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --surface: #ffffff;
  --surface-strong: #f0f3f5;
  --ink: #172026;
  --muted: #66727b;
  --line: #d9e0e2;
  --teal: #0c7777;
  --blue: #234a84;
  --coral: #cb5b48;
  --amber: #bb7f18;
  --green: #237150;
  --red: #a43f3b;
  --shadow: 0 16px 45px rgba(23, 32, 38, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 32, 38, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 32, 38, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  letter-spacing: 0;
}

.loading-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--muted);
}

.loading-mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(23, 32, 38, 0.12);
  background: rgba(247, 246, 241, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.brand strong,
.profile-panel strong {
  display: block;
  line-height: 1.15;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.text-link,
.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.text-link:hover,
.project-links a:hover {
  border-color: rgba(12, 119, 119, 0.45);
  background: #eef8f7;
  transform: translateY(-1px);
}

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px) 0 64px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 350px);
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
  padding: 0 0 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro-text {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}

.profile-panel {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-panel img {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.profile-panel span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.control-band {
  display: grid;
  grid-template-columns: auto minmax(190px, 280px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.segmented,
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segmented {
  flex-wrap: nowrap;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.segmented button,
.segmented a,
.category-tabs button,
.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.segmented button,
.segmented a {
  min-width: 78px;
}

.segmented button.active,
.segmented a.active,
.category-tabs button.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(23, 32, 38, 0.08);
}

.segmented button:disabled,
.refresh-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.search-box {
  display: grid;
  gap: 4px;
}

.search-box span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12, 119, 119, 0.14);
}

.category-tabs {
  min-width: 0;
}

.category-tabs button {
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.45);
}

.refresh-button {
  padding: 0 14px;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
}

.project-link-label {
  min-width: 0;
}

.demo-availability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-availability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: center;
}

.demo-availability-badge.online {
  background: #e8f5ee;
  color: var(--green);
}

.demo-availability-badge.issue {
  background: #f9ebe9;
  color: var(--red);
}

.demo-availability-badge.redirect {
  background: #fbf2df;
  color: var(--amber);
}

.demo-availability-badge.architecture,
.demo-availability-badge.private {
  background: #edf3fb;
  color: var(--blue);
}

.demo-availability-badge.checking,
.demo-availability-badge.unknown {
  background: #f0f3f5;
  color: var(--muted);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 16px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-strip div {
  min-width: 0;
  padding: 15px 16px;
  background: var(--surface);
}

.status-strip span {
  display: block;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
}

.status-strip small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-detail-panel {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.attention-panel {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #f3c98c;
  border-radius: 8px;
  background: #fff8eb;
}

.attention-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.attention-heading h2,
.attention-heading p {
  margin: 0;
}

.attention-heading h2 {
  margin-top: 2px;
  font-size: 1.08rem;
}

.attention-heading p:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.attention-list {
  display: grid;
  gap: 8px;
}

.attention-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid #f1d29d;
  border-radius: 8px;
  background: var(--surface);
}

.attention-row.degraded .status-dot {
  background: var(--amber);
}

.attention-row.offline .status-dot,
.attention-row.timeout .status-dot {
  background: var(--red);
}

.attention-row.timeout {
  background: #fff6f4;
}

.attention-row.unknown .status-dot {
  background: var(--muted);
}

.attention-row strong,
.attention-row span,
.attention-row small {
  display: block;
}

.attention-row span,
.attention-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.attention-row small {
  overflow-wrap: anywhere;
}

.attention-row a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-strong);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.attention-row a:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.operator-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 7px;
}

.operator-link-row .operator-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid rgba(12, 119, 119, 0.25);
  border-radius: 6px;
  background: #eef8f7;
  color: #25534b;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.operator-link-row .operator-link:hover {
  border-color: rgba(12, 119, 119, 0.55);
  background: #e2f3f1;
}

.attention-operator-links {
  justify-content: flex-start;
}

.status-detail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.status-detail-heading h2,
.status-detail-heading p {
  margin: 0;
}

.status-detail-heading h2 {
  font-size: 1.08rem;
}

.status-detail-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-detail-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.status-detail-actions > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.status-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.status-filter-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-filter-tabs button.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(23, 32, 38, 0.08);
}

.status-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.status-detail-empty {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.status-detail-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.status-detail-row.stale {
  border-color: rgba(187, 127, 24, 0.45);
  background: #fffaf0;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.status-detail-row.online .status-dot {
  background: var(--green);
}

.status-detail-row.degraded .status-dot {
  background: var(--amber);
}

.status-detail-row.planned .status-dot {
  background: var(--blue);
}

.status-detail-row.offline .status-dot,
.status-detail-row.timeout .status-dot {
  background: var(--red);
}

.status-detail-row strong,
.status-detail-row span {
  display: block;
}

.status-detail-row strong {
  line-height: 1.2;
}

.status-detail-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.status-detail-metric {
  min-width: 92px;
  max-width: 270px;
  text-align: right;
}

.status-detail-metric strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.status-detail-age {
  color: var(--muted);
  font-weight: 800;
}

.next-check {
  overflow-wrap: anywhere;
}

.status-detail-row.stale .status-detail-age {
  color: var(--amber);
}

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

.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(23, 32, 38, 0.07);
}

.project-visual {
  position: relative;
  height: 142px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #e6eef0;
}

.project-body {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.project-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.project-heading p {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.status-badge {
  flex: 0 0 auto;
  min-width: 76px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  text-align: center;
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-badge.online {
  background: #e8f5ee;
  color: var(--green);
}

.status-badge.offline,
.status-badge.timeout {
  background: #f9ebe9;
  color: var(--red);
}

.status-badge.degraded {
  background: #fbf2df;
  color: var(--amber);
}

.status-badge.planned {
  background: #edf3fb;
  color: var(--blue);
}

.project-summary {
  margin: 0;
  color: #34434b;
  font-size: 0.95rem;
  line-height: 1.55;
}

.metric-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.metric-row span {
  padding: 6px 9px;
  border-radius: 8px;
  background: #eef4f2;
  color: #25534b;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag-row span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.risk-note {
  margin: auto 0 0;
  padding-top: 2px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 240px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
}

.public-mode main {
  width: min(1120px, calc(100% - 32px));
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: clamp(22px, 4vw, 48px);
  align-items: end;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.resume-intro h1 {
  max-width: 720px;
}

.role-line {
  margin: 14px 0 0;
  color: var(--blue);
  font-size: 1.08rem;
  font-weight: 850;
}

.focus-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  margin-top: 18px;
}

.focus-row span {
  padding: 7px 10px;
  border: 1px solid rgba(12, 119, 119, 0.22);
  border-radius: 999px;
  background: #eef8f7;
  color: #25534b;
  font-size: 0.82rem;
  font-weight: 800;
}

.resume-snapshot {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.07);
}

.resume-snapshot img {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  object-fit: cover;
}

.resume-snapshot strong,
.resume-snapshot span {
  display: block;
}

.resume-snapshot strong {
  line-height: 1.2;
}

.resume-snapshot span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.portfolio-controls {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr);
  gap: 12px;
  align-items: end;
  margin: 18px 0 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.portfolio-search {
  display: grid;
  gap: 5px;
}

.portfolio-search span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.portfolio-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.portfolio-search input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12, 119, 119, 0.14);
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
  margin-top: 24px;
}

.resume-column,
.project-sidebar,
.experience-list,
.compact-project-list {
  display: grid;
  gap: 18px;
}

.resume-section {
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.section-heading p {
  margin: 0;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: 1.22rem;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.experience-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.experience-item h3,
.skill-group h3,
.compact-project h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.experience-item span,
.experience-item small {
  color: var(--muted);
  font-size: 0.88rem;
}

.experience-item small {
  font-weight: 800;
  white-space: nowrap;
}

.experience-item ul {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 19px;
  color: #34434b;
  font-size: 0.95rem;
  line-height: 1.55;
}

.experience-item li + li {
  margin-top: 5px;
}

.education-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.education-item,
.skill-group,
.compact-project {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.education-item strong,
.education-item span {
  display: block;
}

.education-item span {
  margin-top: 4px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.education-item p,
.compact-project p {
  margin: 8px 0 0;
  color: #34434b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.skill-list span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef4f2;
  color: #25534b;
  font-size: 0.76rem;
  font-weight: 800;
}

.project-sidebar {
  position: sticky;
  top: 96px;
}

.compact-project {
  display: grid;
  gap: 10px;
}

.compact-project > div:first-child p {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.compact-project .tag-row {
  gap: 6px;
}

.compact-links {
  margin-top: 0;
}

.compact-links a {
  min-height: 32px;
  padding: 0 11px;
  font-size: 0.82rem;
}

.empty-state.compact {
  min-height: 140px;
}

body[data-view="public"] {
  background: #ffffff;
  color: #172026;
  font-family: Aptos, "Segoe UI", Arial, Helvetica, sans-serif;
}

body[data-view="public"] .site-header {
  min-height: 64px;
  border-bottom: 1px solid #d8e5f2;
  background: rgba(255, 255, 255, 0.96);
}

body[data-view="public"] .brand-mark {
  border-color: #1f5f93;
  background: #1f5f93;
}

body[data-view="public"] .text-link {
  border-color: #d8e5f2;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

body[data-view="public"] .text-link:hover {
  border-color: rgba(47, 111, 159, 0.38);
  background: #eaf5ff;
}

.public-mode main {
  width: min(1160px, calc(100% - 32px));
  padding-top: clamp(18px, 3vw, 34px);
}

.finance-hero {
  padding: 0 0 18px;
  border-bottom: 2px solid #172026;
}

.finance-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.finance-intro h1 {
  max-width: 780px;
  font-size: clamp(2.05rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
}

.finance-intro .intro-text {
  max-width: 680px;
  color: #3f4d52;
  font-size: 1.02rem;
  line-height: 1.55;
}

.public-summary-list {
  display: grid;
  gap: 8px;
  max-width: 780px;
  margin: 18px 0 0;
  padding-left: 19px;
  color: #263338;
  font-size: 0.98rem;
  line-height: 1.5;
}

.finance-layout .section-heading p,
.finance-sidebar .section-heading p {
  color: #1f5f93;
}

.role-line {
  margin: 12px 0 0;
  color: #1f5f93;
  font-size: 1.05rem;
  font-weight: 700;
}

.current-line {
  margin: 8px 0 0;
  color: #44515a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.candidate-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8e5f2;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: none;
}

.candidate-heading {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.candidate-heading img {
  width: 56px;
  height: 56px;
  border: 1px solid #d8e5f2;
  border-radius: 4px;
  object-fit: cover;
}

.candidate-heading strong,
.candidate-heading span {
  display: block;
}

.candidate-heading strong {
  font-size: 1.05rem;
}

.candidate-heading span {
  margin-top: 4px;
  color: #5f6c70;
  font-size: 0.86rem;
  line-height: 1.35;
}

.candidate-card dl {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid #d8e5f2;
  border-radius: 2px;
  background: #d8e5f2;
}

.candidate-card dl div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 9px;
  padding: 8px 9px;
  background: #ffffff;
}

.candidate-card dt,
.contact-item span {
  color: #5f6c70;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.candidate-card dd {
  margin: 0;
  color: #172026;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
}

.resume-download {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #1f5f93;
  border-radius: 2px;
  background: #1f5f93;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d8e5f2;
  border-radius: 2px;
  background: #d8e5f2;
}

.contact-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.contact-item strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  line-height: 1.3;
}

.finance-nav {
  display: grid;
  grid-template-columns: auto;
  align-items: center;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid #d8e5f2;
  border-radius: 2px;
  background: #ffffff;
}

.finance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  margin-top: 22px;
}

.finance-layout .resume-section,
.sidebar-section {
  padding-top: 16px;
  border-top: 2px solid #172026;
}

.finance-layout .section-heading,
.finance-sidebar .section-heading {
  margin-bottom: 14px;
}

.finance-layout .section-heading h2,
.finance-sidebar .section-heading h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.finance-layout .experience-section .section-heading h2 {
  font-size: clamp(1.42rem, 2.4vw, 1.8rem);
  line-height: 1.15;
}

.finance-layout .experience-item {
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  padding: 17px 0;
  border-bottom-color: #d8e5f2;
}

.finance-layout .experience-item h3 {
  font-size: 1.05rem;
}

.finance-layout .experience-item ul {
  color: #263338;
}

.finance-layout .education-grid,
.finance-layout .skills-grid {
  grid-template-columns: 1fr;
}

.finance-layout .education-item,
.finance-layout .skill-group,
.finance-layout .compact-project {
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid #d8e5f2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.finance-layout .education-item:last-child,
.finance-layout .skill-group:last-child,
.finance-layout .compact-project:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.finance-layout .education-item span {
  color: #1f5f93;
}

.coursework-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.coursework-list,
.honor-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 19px;
  color: #263338;
  font-size: 0.94rem;
  line-height: 1.45;
}

.honor-list li::marker {
  color: #1f5f93;
}

.finance-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 22px;
}

.finance-sidebar .skill-list span {
  border: 1px solid #bfdbf2;
  background: #eaf5ff;
  color: #1f5f93;
}

.finance-sidebar .compact-project {
  gap: 11px;
}

.finance-sidebar .compact-project > div:first-child p {
  color: #1f5f93;
}

.finance-sidebar .compact-project h3 {
  font-size: 0.98rem;
}

.finance-sidebar .compact-project p {
  color: #3f4d52;
}

.project-visual.rail {
  background:
    linear-gradient(0deg, transparent 39%, #243039 40%, #243039 43%, transparent 44%),
    linear-gradient(0deg, transparent 59%, #243039 60%, #243039 63%, transparent 64%),
    #e7ece9;
}

.project-visual.rail span {
  position: absolute;
  left: 22px;
  right: 22px;
  height: 8px;
  background: repeating-linear-gradient(90deg, #8f6c4f 0 9px, transparent 9px 20px);
}

.project-visual.rail span:first-child {
  top: 54px;
}

.project-visual.rail span:nth-child(2) {
  top: 82px;
}

.project-visual.rail i,
.project-visual.rail b {
  position: absolute;
  display: block;
  width: 62px;
  height: 24px;
  border-radius: 5px;
  background: var(--coral);
  box-shadow: 24px 0 0 var(--blue);
}

.project-visual.rail i {
  top: 42px;
  left: 58px;
}

.project-visual.rail b {
  right: 72px;
  bottom: 41px;
  background: var(--teal);
}

.project-visual.chart {
  background: #edf1f4;
}

.project-visual.chart::before {
  content: "";
  position: absolute;
  inset: 24px;
  background:
    linear-gradient(180deg, transparent 0 31px, rgba(35, 74, 132, 0.13) 32px),
    linear-gradient(90deg, transparent 0 31px, rgba(35, 74, 132, 0.13) 32px);
  background-size: 32px 32px;
}

.project-visual.chart span {
  position: absolute;
  bottom: 28px;
  width: 24px;
  border-radius: 5px 5px 0 0;
  background: var(--teal);
}

.project-visual.chart span:nth-child(1) {
  left: 42px;
  height: 48px;
}

.project-visual.chart span:nth-child(2) {
  left: 84px;
  height: 74px;
  background: var(--blue);
}

.project-visual.chart span:nth-child(3) {
  left: 126px;
  height: 58px;
  background: var(--amber);
}

.project-visual.chart i,
.project-visual.chart b {
  position: absolute;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--coral);
  transform-origin: left;
}

.project-visual.chart i {
  left: 52px;
  top: 76px;
  width: 95px;
  transform: rotate(-19deg);
}

.project-visual.chart b {
  left: 142px;
  top: 48px;
  width: 88px;
  transform: rotate(21deg);
}

.project-visual.chat {
  background: #e9eff0;
}

.project-visual.chat span {
  position: absolute;
  display: block;
  border-radius: 8px;
}

.project-visual.chat span:nth-child(1) {
  left: 30px;
  top: 30px;
  width: 58%;
  height: 26px;
  background: var(--surface);
}

.project-visual.chat span:nth-child(2) {
  right: 32px;
  top: 70px;
  width: 46%;
  height: 30px;
  background: var(--teal);
}

.project-visual.chat span:nth-child(3) {
  left: 52px;
  bottom: 24px;
  width: 42%;
  height: 22px;
  background: var(--blue);
}

.project-visual.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 22px;
  background: #eef0ec;
}

.project-visual.pipeline span {
  border-radius: 8px;
  background: var(--surface);
  box-shadow:
    inset 0 18px 0 rgba(12, 119, 119, 0.16),
    inset 0 54px 0 rgba(35, 74, 132, 0.1);
}

.project-visual.nodes {
  background: #e8edee;
}

.project-visual.nodes span {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
}

.project-visual.nodes span:nth-child(1) {
  left: 34px;
  top: 30px;
}

.project-visual.nodes span:nth-child(2) {
  right: 46px;
  top: 28px;
}

.project-visual.nodes span:nth-child(3) {
  left: 88px;
  bottom: 28px;
}

.project-visual.nodes span:nth-child(4) {
  right: 102px;
  bottom: 30px;
}

.project-visual.nodes i {
  position: absolute;
  inset: 52px 68px;
  border-top: 3px solid var(--coral);
  border-bottom: 3px solid var(--teal);
  transform: skewY(-12deg);
}

.project-visual.shield,
.project-visual.home {
  background: #eef1ed;
}

.project-visual.shield span,
.project-visual.home span {
  position: absolute;
  display: block;
}

.project-visual.shield span:nth-child(1) {
  left: 50%;
  top: 24px;
  width: 78px;
  height: 88px;
  border: 3px solid var(--teal);
  border-radius: 12px 12px 28px 28px;
  transform: translateX(-50%);
}

.project-visual.shield span:nth-child(2) {
  left: 50%;
  top: 56px;
  width: 42px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  transform: translateX(-50%);
  box-shadow: 0 18px 0 var(--blue);
}

.project-visual.home span:nth-child(1) {
  left: 62px;
  top: 58px;
  width: 132px;
  height: 66px;
  border-radius: 8px 8px 0 0;
  background: var(--surface);
  border: 2px solid var(--ink);
}

.project-visual.home span:nth-child(2) {
  left: 78px;
  top: 30px;
  width: 96px;
  height: 96px;
  background: var(--coral);
  transform: rotate(45deg);
  z-index: 0;
}

.project-visual.home i {
  position: absolute;
  left: 114px;
  top: 82px;
  width: 28px;
  height: 42px;
  background: var(--blue);
  border-radius: 6px 6px 0 0;
}

.project-visual.code,
.project-visual.network {
  background: #edf1f4;
}

.project-visual.code span {
  position: absolute;
  left: 28px;
  right: 28px;
  height: 12px;
  border-radius: 999px;
  background: var(--surface);
}

.project-visual.code span:nth-child(1) {
  top: 34px;
  width: 64%;
}

.project-visual.code span:nth-child(2) {
  top: 64px;
  width: 78%;
}

.project-visual.code span:nth-child(3) {
  top: 94px;
  width: 52%;
  background: var(--teal);
}

.project-visual.network span {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--blue);
}

.project-visual.network span:nth-child(1) {
  left: 42px;
  top: 44px;
}

.project-visual.network span:nth-child(2) {
  right: 54px;
  top: 30px;
  border-color: var(--teal);
}

.project-visual.network span:nth-child(3) {
  left: 50%;
  bottom: 24px;
  border-color: var(--coral);
}

.project-visual.network i {
  position: absolute;
  inset: 56px 74px 42px;
  border-top: 3px solid var(--ink);
  border-left: 3px solid var(--ink);
  transform: rotate(22deg);
}

@media (max-width: 980px) {
  .intro-band,
  .control-band,
  .portfolio-hero,
  .portfolio-controls,
  .portfolio-layout,
  .finance-hero-grid,
  .finance-nav,
  .finance-layout,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .control-band {
    align-items: stretch;
  }

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

  .project-sidebar,
  .finance-sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  main {
    width: min(100% - 24px, 1240px);
  }

  .profile-panel {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .profile-panel img {
    width: 64px;
    height: 64px;
  }

  .resume-snapshot {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .resume-snapshot img {
    width: 64px;
    height: 64px;
  }

  .status-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .attention-row {
    align-items: start;
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .attention-row a {
    grid-column: 2;
    justify-self: start;
  }

  .status-detail-heading,
  .status-detail-row {
    align-items: start;
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .status-detail-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  .status-detail-actions {
    justify-content: flex-start;
  }

  .status-detail-grid {
    grid-template-columns: 1fr;
  }

  .status-detail-metric {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }

  .education-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .finance-layout .experience-item {
    grid-template-columns: 1fr;
  }

  .experience-item small {
    white-space: normal;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-body {
    min-height: auto;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.2rem;
  }

  .segmented {
    width: 100%;
  }

  .segmented button,
  .segmented a {
    flex: 1;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

}
