@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,500..700,0..1,0");

:root {
  --bg: #f0f5f8;
  --bg-soft: #e7eef3;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #142637;
  --muted: #475f72;
  --line: #c6d2dc;
  --line-strong: #8fa4b5;
  --accent: #0f8b8d;
  --accent-strong: #0d7288;
  --notice-height: 0px;
  --nav-height: 78px;
  --container: 1180px;
  --font-sans: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.65;
  background:
    linear-gradient(rgba(40, 78, 104, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 78, 104, 0.065) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbfd 0%, var(--bg-soft) 36%, var(--bg) 100%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
}

.material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24;
}

::selection {
  background: rgba(15, 139, 141, 0.22);
  color: #0b2233;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid rgba(15, 139, 141, 0.7);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: var(--notice-height);
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(240, 247, 252, 0.26);
  background: rgba(8, 18, 28, 0.26);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-notice {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  margin: 0;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(224, 241, 247, 0.38);
  color: #eaf6fb;
  background: linear-gradient(90deg, rgba(10, 89, 100, 0.97), rgba(12, 79, 96, 0.95));
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1.45;
  text-align: center;
}

.site-header.is-scrolled {
  background: rgba(8, 18, 28, 0.82);
  border-bottom-color: rgba(240, 247, 252, 0.18);
  box-shadow: 0 12px 30px rgba(4, 10, 18, 0.24);
}

.site-header.is-nav-open {
  background: rgba(8, 18, 28, 0.9);
  border-bottom-color: rgba(240, 247, 252, 0.24);
  box-shadow: 0 12px 30px rgba(4, 10, 18, 0.28);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  color: #f4f8fb;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand::before {
  content: "//";
  color: #83dde4;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav-links a {
  text-decoration: none;
  color: rgba(234, 244, 250, 0.94);
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(244, 249, 252, 0.16);
  border-color: rgba(244, 249, 252, 0.26);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(240, 247, 252, 0.35);
  border-radius: 2px;
  background: rgba(8, 18, 28, 0.45);
  color: #f4f8fb;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.nav-toggle:hover {
  border-color: rgba(240, 247, 252, 0.58);
  background: rgba(8, 18, 28, 0.64);
}

.nav-toggle-line {
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

main {
  position: relative;
}

.hero-banner {
  --hero-image: linear-gradient(140deg, #2c5f7f 0%, #18354b 52%, #10293d 100%);
  position: relative;
  min-height: clamp(430px, 68vh, 700px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + var(--notice-height) + 2.25rem) 0 2.8rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(26, 50, 72, 0.26);
  isolation: isolate;
}

.hero-banner--home {
  min-height: clamp(590px, 90vh, 860px);
}

.hero-banner--full-screen {
  min-height: 100svh;
  align-items: center;
  padding: calc(var(--nav-height) + var(--notice-height) + 0.9rem) 0 0.9rem;
}

.hero-banner--full-screen .hero-banner-content {
  max-width: 760px;
  text-align: center;
  justify-items: center;
}

.hero-banner--full-screen .lead {
  margin-inline: auto;
}

.hero-banner--full-screen .contact-links {
  justify-content: center;
}

body[data-page="contact"] {
  background: #061523;
}

body[data-page="contact"] main {
  min-height: 100svh;
}

body[data-page="contact"] .hero-banner--full-screen {
  min-height: 100svh;
  padding-bottom: 5.4rem;
}

.site-footer--on-hero {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  margin: 0;
  padding: 0.95rem 1rem 1.2rem;
  border-top: 0;
  color: rgba(234, 244, 250, 0.9);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, rgba(6, 21, 35, 0), rgba(6, 21, 35, 0.72));
}

.site-footer--on-hero p {
  margin: 0;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(130deg, rgba(8, 21, 34, 0.8) 0%, rgba(9, 26, 42, 0.56) 52%, rgba(8, 21, 34, 0.82) 100%),
    linear-gradient(180deg, rgba(5, 17, 29, 0.16) 0%, rgba(5, 17, 29, 0.6) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: var(--hero-focus-x, 50%) var(--hero-focus-y, 50%);
}

.hero-banner::after {
  content: attr(data-copyright);
  position: absolute;
  left: 0.65rem;
  bottom: 1rem;
  z-index: 1;
  color: rgba(239, 248, 253, 0.86);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.hero-banner:not([data-copyright])::after {
  content: "© Bryan Ma";
}

.hero-banner-content {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
  color: #f4f8fb;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 1.1rem;
}

.hero-banner-content--split {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 1.4rem;
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

h1 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0.01em;
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
}

h2 {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(1.45rem, 3.1vw, 2.2rem);
}

h3 {
  margin: 0;
  line-height: 1.28;
  font-size: 1.12rem;
}

.hero-banner .eyebrow {
  color: #9ee4ea;
}

.hero-banner:not(.hero-banner--full-screen) .hero-banner-content > .eyebrow {
  margin-left: 0.08rem;
}

.hero-banner .lead {
  color: rgba(229, 239, 246, 0.94);
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-mono);
}

.lead {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.75;
}

.project-period {
  margin: 0.2rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.34rem 0.58rem;
  border: 1px solid rgba(235, 246, 252, 0.42);
  background: rgba(6, 22, 34, 0.48);
  color: rgba(229, 239, 246, 0.95);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-period[hidden] {
  display: none;
}

.project-period-icon {
  color: rgba(229, 239, 246, 0.98);
  font-size: 0.98rem;
  font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 24;
}

.hero-actions {
  margin-top: 0.25rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  gap: 0.65rem;
}

.hero-metrics--band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-metrics-band {
  border-top: 1px solid rgba(15, 40, 60, 0.9);
  border-bottom: 1px solid rgba(15, 40, 60, 0.9);
  background: #102536;
  padding: 1rem 0 1.15rem;
}

.home-metrics-band .metric {
  border-color: rgba(160, 205, 226, 0.28);
  background: #173347;
}

.home-metrics-band .metric-value {
  color: #eff7fc;
}

.home-metrics-band .metric-label {
  color: rgba(221, 236, 246, 0.94);
}

.hero-side-stack {
  display: grid;
  gap: 0.8rem;
  justify-items: end;
}

.hero-headshot {
  margin: 0;
  width: min(320px, 100%);
  border: 1px solid rgba(235, 246, 252, 0.42);
  border-radius: 2px;
  background: rgba(6, 22, 34, 0.42);
  overflow: hidden;
}

.hero-headshot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  image-rendering: auto;
  display: block;
}

.hero-headshot figcaption {
  padding: 0.55rem 0.7rem;
  color: rgba(229, 239, 246, 0.95);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric {
  border: 1px solid rgba(235, 246, 252, 0.38);
  background: rgba(6, 22, 34, 0.42);
  border-radius: 2px;
  padding: 0.85rem;
}

.metric-value,
.metric-label {
  margin: 0;
}

.metric-value {
  font-size: clamp(1.2rem, 3.1vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.metric-label {
  margin-top: 0.35rem;
  color: rgba(216, 231, 241, 0.95);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1rem;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-ghost {
  background: var(--surface-strong);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.hero-banner .btn-ghost {
  background: rgba(248, 252, 255, 0.1);
  border-color: rgba(248, 252, 255, 0.54);
  color: #f4f8fb;
}

.hero-banner .btn-ghost:hover {
  background: rgba(248, 252, 255, 0.2);
  border-color: rgba(248, 252, 255, 0.74);
}

.text-link {
  text-decoration: none;
  color: var(--accent-strong);
  font-weight: 700;
}

.text-link:hover {
  color: #0b4f66;
}

.section {
  padding: 2.7rem 0 0;
}

.section:last-of-type {
  padding-bottom: 2.7rem;
}

.section-head {
  margin-bottom: 0.95rem;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.8rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.entry-card,
.projects-grid article,
.timeline-item,
.toolbar,
.resource-tile,
.coming-soon-card {
  border: 1px solid var(--line);
  border-left: 3px solid rgba(15, 139, 141, 0.55);
  border-radius: 2px;
  background: var(--surface);
}

.card,
.entry-card,
.timeline-item,
.resource-tile,
.coming-soon-card {
  padding: 1rem 1.05rem;
}

.card p,
.muted,
.timeline-item p,
.projects-grid article p,
.toolbar label,
.entry-card p,
.resource-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.chips,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chips span,
.tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  font-size: 0.78rem;
  border: 1px solid rgba(15, 139, 141, 0.34);
  color: #0f5566;
  background: rgba(246, 251, 254, 0.95);
  font-family: var(--font-mono);
}

.focus-areas-block {
  margin-top: 1.35rem;
  border: 1px solid var(--line-strong);
  border-left: 4px solid rgba(15, 139, 141, 0.72);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 250, 253, 0.94));
  box-shadow: 0 12px 28px rgba(11, 35, 51, 0.08);
  padding: 1.15rem 1.2rem 1.25rem;
}

.focus-areas-head {
  margin-bottom: 0.85rem;
}

.focus-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.56rem;
}

.focus-areas-grid span {
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.48rem 0.8rem;
  border-color: rgba(15, 139, 141, 0.44);
  color: #0d4f61;
  background: rgba(251, 254, 255, 0.98);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  scroll-margin-top: calc(var(--nav-height) + var(--notice-height) + 1rem);
}

.projects-grid article {
  display: flex;
  overflow: hidden;
}

.project-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.projects-grid article:hover {
  border-left-color: rgba(13, 114, 136, 0.8);
  box-shadow: 0 10px 26px rgba(14, 34, 52, 0.12);
}

.project-card-link:focus-visible {
  outline: 2px solid rgba(15, 139, 141, 0.62);
  outline-offset: -2px;
}

.project-card-cover,
.detail-cover,
.gallery-grid img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

.project-card-cover {
  height: 190px;
}

.project-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.62rem;
  padding: 0.95rem;
  height: 100%;
}

.project-card-head-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.featured-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.18rem 0.52rem;
  border: 1px solid rgba(161, 115, 21, 0.42);
  border-radius: 999px;
  background: rgba(252, 221, 142, 0.3);
  color: #7e560c;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-pill--achievement {
  margin: 0 0 0.52rem;
}

.featured-card {
  border-left-color: rgba(168, 126, 28, 0.72) !important;
  background: linear-gradient(180deg, rgba(255, 253, 244, 0.97), rgba(252, 248, 236, 0.94));
}

.projects-grid article.featured-card:hover {
  border-left-color: rgba(161, 115, 21, 0.86);
  box-shadow: 0 12px 28px rgba(94, 70, 18, 0.14);
}

.timeline-entry.featured-card::before,
.entry-card.featured-card::before {
  background: #c99118;
}

.project-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.project-title-text {
  display: inline-block;
}

.project-title-logo {
  width: auto;
  height: 1.25rem;
  max-width: 4.6rem;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.project-title-logo--detail {
  height: clamp(1.55rem, 3.2vw, 2.35rem);
  max-width: min(26vw, 9rem);
}

.hero-banner .project-title-logo--detail {
  filter: drop-shadow(0 1px 2px rgba(6, 16, 24, 0.38));
}

.project-card-content .tags {
  margin-top: auto;
}

.project-card-period {
  margin: 0;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-type {
  margin: 0;
  font-size: 0.72rem;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.achievement-sources {
  margin-top: 0.7rem;
  flex-wrap: wrap;
  gap: 0.38rem 0.82rem;
}

.sources-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.achievement-sources a {
  font-size: 0.86rem;
}

.project-links a,
.contact-links a {
  text-decoration: none;
  color: var(--accent-strong);
  font-weight: 700;
}

.project-links a:hover,
.contact-links a:hover {
  color: #083e51;
}

.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
}

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  width: min(860px, 100%);
}

.toolbar-field {
  flex: 1 1 260px;
}

.toolbar-field--compact {
  flex: 0 1 170px;
}

.toolbar-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.toolbar-field-head label {
  margin-bottom: 0;
}

.toolbar-clear-btn {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.toolbar-clear-btn:hover:not(:disabled) {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
  background: rgba(247, 252, 254, 0.96);
}

.toolbar-clear-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.toolbar label {
  display: block;
  margin-bottom: 0.3rem;
}

.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
  padding: 0.62rem 0.68rem;
}

.toolbar select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(20, 38, 55, 0.72) 50%),
    linear-gradient(135deg, rgba(20, 38, 55, 0.72) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.toolbar input:focus,
.toolbar select:focus {
  outline: 2px solid rgba(15, 139, 141, 0.3);
  border-color: rgba(15, 139, 141, 0.62);
}

.toolbar-active-tags {
  margin-top: 0.55rem;
  min-height: 1.75rem;
}

.tag-filter-empty {
  border: 1px dashed rgba(143, 164, 181, 0.7);
  color: var(--muted);
  background: rgba(247, 251, 254, 0.75);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.54rem;
  font-family: var(--font-mono);
}

.tag-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(15, 139, 141, 0.4);
  color: #0f5566;
  background: rgba(246, 251, 254, 0.95);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.28rem 0.58rem;
  cursor: pointer;
}

.tag-filter-chip::after {
  content: "x";
  font-size: 0.72rem;
  opacity: 0.8;
}

.tag-filter-chip:hover {
  border-color: rgba(13, 114, 136, 0.8);
  color: #0d4a5b;
}

.pagination-wrap {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.experience-sections {
  display: grid;
  gap: 1.55rem;
}

.experience-group {
  display: grid;
  gap: 0.85rem;
}

.experience-group + .experience-group {
  padding-top: 0.1rem;
  border-top: 1px solid rgba(143, 164, 181, 0.3);
}

.experience-group-head {
  margin-bottom: 0;
}

.experience-group-title {
  font-size: clamp(1.28rem, 2.4vw, 1.65rem);
}

.entry-meta {
  margin: 0 0 0.42rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
  font-family: var(--font-mono);
}

.entry-org {
  margin: 0.35rem 0 0.6rem;
  color: var(--muted);
  font-weight: 600;
}

.entry-card--interactive {
  display: flex;
  padding: 0;
}

.entry-card--interactive:hover {
  border-left-color: rgba(13, 114, 136, 0.8);
  box-shadow: 0 10px 26px rgba(14, 34, 52, 0.12);
}

.experience-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.56rem;
  width: 100%;
  height: 100%;
  padding: 1rem 1.05rem;
  color: inherit;
  text-decoration: none;
}

.experience-card-link:focus-visible {
  outline: 2px solid rgba(15, 139, 141, 0.62);
  outline-offset: -2px;
}

.entry-summary {
  margin: 0;
  color: var(--muted);
}

.entry-cta {
  margin-top: auto;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.experience-detail-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.experience-detail-list {
  margin-top: 0.1rem;
}

.experience-detail-placeholder-card {
  display: grid;
  gap: 0.55rem;
}

.experience-detail-empty {
  margin: 0;
}

.experience-detail-empty-card {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.entry-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.66;
}

.timeline {
  --timeline-track-x: 0.62rem;
  --timeline-indent: 1.85rem;
  --timeline-dot-size: 0.72rem;
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding-left: var(--timeline-indent);
}

.timeline::before {
  content: "";
  position: absolute;
  left: var(--timeline-track-x);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(15, 139, 141, 0.78), rgba(15, 139, 141, 0.2));
}

.timeline-item {
  position: relative;
  padding-left: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-track-x) - var(--timeline-indent));
  top: 50%;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #edf3f7;
  background: var(--accent);
}

.achievements-timeline {
  --timeline-dot-center-x: 0.62rem;
  --timeline-track-width: 2px;
  --timeline-indent: 1.9rem;
  --timeline-dot-size: 0.74rem;
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding-left: var(--timeline-indent);
}

.achievements-timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-dot-center-x) - (var(--timeline-track-width) / 2));
  top: 0;
  bottom: 0;
  width: var(--timeline-track-width);
  background: linear-gradient(180deg, rgba(15, 139, 141, 0.9), rgba(15, 139, 141, 0.25));
}

.timeline-entry {
  --timeline-entry-left-border: 3px;
  position: relative;
  border: 1px solid var(--line);
  border-left: var(--timeline-entry-left-border) solid rgba(15, 139, 141, 0.65);
  border-radius: 2px;
  background: var(--surface);
  padding: 0.95rem 1rem;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: calc(
    var(--timeline-dot-center-x) - var(--timeline-indent) - (var(--timeline-dot-size) / 2) - var(--timeline-entry-left-border)
  );
  top: 50%;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  transform: translateY(-50%);
  border-radius: 50%;
  border: 2px solid #edf3f7;
  background: var(--accent);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.resource-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.resource-tile h3 {
  margin-top: 0;
}

.resource-tile--wip h3 {
  padding-right: 10.8rem;
}

.resource-tile .btn {
  margin-top: auto;
}

.resource-id {
  margin: 0;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resource-flag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.18rem 0.48rem;
  border: 1px solid rgba(163, 111, 18, 0.35);
  border-radius: 999px;
  background: rgba(255, 199, 115, 0.2);
  color: #7a5008;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-flag-icon {
  font-size: 0.94rem;
  color: #6b4306;
  font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 24;
}

.resource-subheading {
  margin: -0.3rem 0 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coming-soon-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 249, 252, 0.9));
}

.coming-soon-card h3 {
  margin-bottom: 0.35rem;
}

.detail-cover {
  max-height: 520px;
  border: 1px solid var(--line);
}

.project-article {
  border: 1px solid var(--line);
  border-left: 3px solid rgba(15, 139, 141, 0.6);
  border-radius: 2px;
  background: var(--surface);
  padding: 1.05rem 1.1rem;
}

.project-article-tags {
  margin-bottom: 1rem;
}

.project-article-body {
  display: grid;
  gap: 0.95rem;
}

.project-article-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.detail-media-list {
  display: grid;
  gap: 0.7rem;
}

.detail-media-link {
  flex-wrap: wrap;
  gap: 0.35rem 0.82rem;
}

.detail-media-link .sources-label {
  min-width: 9.2rem;
}

.detail-media-link a {
  font-size: 0.94rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  min-height: 220px;
  border: 1px solid var(--line);
}

.contact-links {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.contact-links--hero {
  margin-top: 1rem;
  gap: 1rem;
}

.contact-links--hero a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  font-size: clamp(1.08rem, 2.1vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(242, 248, 253, 0.58);
  background: rgba(6, 22, 34, 0.55);
  color: #f5fbff;
}

.contact-links--hero a:hover {
  color: #0b3f54;
  background: rgba(245, 250, 254, 0.95);
  border-color: rgba(245, 250, 254, 0.95);
}

.contact-links--hero a:first-child {
  font-family: var(--font-mono);
}

.large-links a {
  font-size: 1.02rem;
}

.site-footer {
  margin-top: 1.2rem;
  padding: 1.25rem 0 2rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(143, 164, 181, 0.38);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms ease, transform 560ms ease;
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(229, 237, 243, 0.84);
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 139, 141, 0.34);
  border-radius: 999px;
  border: 3px solid rgba(229, 237, 243, 0.84);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .projects-grid,
  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics--band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-areas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .hero-banner-content--split,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-side-stack {
    justify-items: start;
  }

  .hero-metrics--band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head-row,
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar-controls {
    width: 100%;
  }

  .toolbar-field {
    flex-basis: 100%;
  }

  .toolbar input,
  .toolbar select {
    width: 100%;
  }
}

@media (max-width: 700px) {
  :root {
    --nav-height: 92px;
  }

  .site-notice {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .nav-wrap {
    position: relative;
    align-items: center;
    padding: 0.8rem 0;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    border: 1px solid rgba(240, 247, 252, 0.24);
    border-left: 3px solid rgba(131, 221, 228, 0.72);
    border-radius: 2px;
    background: rgba(8, 18, 28, 0.97);
    box-shadow: 0 14px 30px rgba(3, 9, 16, 0.34);
    transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease, padding 200ms ease;
  }

  .site-header.is-nav-open .nav-links {
    max-height: 21rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    padding: 0.3rem 0;
  }

  .nav-links a {
    width: 100%;
    display: block;
    font-size: 0.88rem;
    padding: 0.62rem 0.82rem;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-color: transparent;
    border-left-color: rgba(131, 221, 228, 0.84);
    background: rgba(244, 249, 252, 0.12);
  }

  .nav-toggle.is-open .nav-toggle-line:nth-child(1) {
    transform: translateY(0.38rem) rotate(45deg);
  }

  .nav-toggle.is-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-0.38rem) rotate(-45deg);
  }

  .hero-banner {
    padding-top: calc(var(--nav-height) + var(--notice-height) + 1.7rem);
    min-height: clamp(390px, 74vh, 590px);
  }

  body[data-page="contact"] .hero-banner--full-screen {
    min-height: 100svh;
    padding-bottom: 4.8rem;
  }

  .hero-banner::after {
    left: 0.55rem;
    bottom: 0.8rem;
  }

  .info-grid,
  .projects-grid,
  .resources-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .focus-areas-block {
    padding: 1rem;
  }

  .focus-areas-grid {
    grid-template-columns: 1fr;
  }

  .achievements-timeline {
    --timeline-indent: 1.55rem;
  }

  .hero-metrics--band {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .hero-headshot {
    width: min(240px, 82vw);
  }

  .project-card-cover {
    height: clamp(148px, 46vw, 190px);
  }

  .gallery-grid img {
    min-height: 170px;
  }

  .toolbar {
    padding: 0.8rem 0.85rem;
  }

  .toolbar-controls {
    flex-direction: column;
    gap: 0.65rem;
  }

  .toolbar-field,
  .toolbar-field--compact {
    flex: 1 1 auto;
  }

  .toolbar input,
  .toolbar select {
    padding: 0.55rem 0.6rem;
  }

  .detail-media-link .sources-label {
    min-width: 0;
  }

  .contact-links--hero {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .contact-links--hero a {
    width: 100%;
    justify-content: center;
    min-height: 2.65rem;
    font-size: clamp(0.98rem, 3vw, 1.1rem);
  }

  .site-footer--on-hero {
    padding-bottom: 0.95rem;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-height: 86px;
  }

  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .nav-wrap {
    padding: 0.7rem 0;
  }

  .brand {
    font-size: 0.88rem;
    letter-spacing: 0.14em;
  }

  .nav-links a {
    padding: 0.56rem 0.72rem;
    font-size: 0.84rem;
  }

  .hero-banner {
    padding-top: calc(var(--nav-height) + var(--notice-height) + 1.35rem);
  }

  .hero-banner-content--split {
    gap: 1rem;
  }

  .hero-headshot {
    width: min(210px, 78vw);
  }

  .card,
  .entry-card,
  .timeline-item,
  .resource-tile,
  .coming-soon-card,
  .toolbar,
  .timeline-entry,
  .project-article {
    padding: 0.84rem 0.86rem;
  }

  .entry-list {
    padding-left: 0.82rem;
  }

  .timeline,
  .achievements-timeline {
    --timeline-indent: 1.25rem;
  }

  .timeline-item {
    padding-left: 0.72rem;
  }

  .metric {
    padding: 0.72rem;
  }

  .metric-label {
    font-size: 0.84rem;
  }

  .detail-media-link {
    gap: 0.28rem 0.55rem;
  }

  .experience-card-link {
    padding: 0.84rem 0.86rem;
  }

  .gallery-grid img {
    min-height: 150px;
  }

  .focus-areas-grid span {
    min-height: 2.35rem;
    padding: 0.42rem 0.62rem;
    font-size: 0.84rem;
  }

  body[data-page="contact"] .hero-banner--full-screen {
    padding-bottom: 4.25rem;
  }

  .site-footer--on-hero {
    padding: 0.72rem 0.9rem 0.85rem;
    font-size: 0.9rem;
  }
}
