:root {
  --bg: #fafafb;
  --surface: #ffffff;
  --text: #1d2228;
  --muted: #59616a;
  --line: #dce2e6;
  --accent: #2f6670;
  --font: "Poppins", system-ui, sans-serif;
  --display-font: "Fraunces", Georgia, serif;
  --mono-font: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
}

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

button,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

p,
li,
h1,
h2,
h3,
span,
a,
dd {
  overflow-wrap: anywhere;
}

li {
  list-style: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(47, 102, 112, 0.18);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.fv-sr-only {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.fv-skip-link {
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  left: 20px;
  padding: 12px;
  position: absolute;
  top: -100px;
  z-index: 5;
}

.fv-skip-link:focus {
  top: 12px;
}

.fv-body {
  min-height: 100vh;
  position: relative;
}

.fv-helix {
  --helix-opacity: 0.46;
  display: block;
  height: 100svh;
  left: 0;
  top: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 128px, #000 calc(100% - 160px), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 128px, #000 calc(100% - 160px), transparent);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 600ms ease;
  width: 100%;
  z-index: 0;
}

.fv-helix[data-ready="true"] {
  opacity: var(--helix-opacity);
}

.fv-hero-haze {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: rgba(250, 250, 251, 0.8);
  height: 100svh;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.fv-page {
  --fv-page-left: 64px;
  --fv-page-right: 96px;
  margin: 0 auto;
  padding: 40px var(--fv-page-right) 56px var(--fv-page-left);
  position: relative;
  width: 100%;
  z-index: 1;
}

.fv-nav {
  align-items: center;
  display: flex;
  font-size: 15px;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 48px;
}

.fv-nav > a {
  font-weight: 500;
}

.fv-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.fv-nav a {
  padding-block: 8px;
}

.fv-nav a,
.fv-inline-links a,
.fv-contact-copy a,
.fv-text-link {
  color: var(--accent);
}

.fv-nav a:hover,
.fv-inline-links a:hover,
.fv-contact-copy a:hover,
.fv-text-link:hover,
.fv-project h3 a:hover,
.fv-detail-aside a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fv-hero {
  align-items: center;
  display: grid;
  margin-bottom: 56px;
  min-height: max(460px, calc(100svh - 250px));
}

.fv-intro {
  align-items: center;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1fr) 228px;
  isolation: isolate;
  position: relative;
}

.fv-hero-copy {
  max-width: 1100px;
}

.fv-location {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.fv-hero h1 {
  font-size: 60px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 18px;
}

.fv-hero h2 {
  color: #303841;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.42;
  margin-bottom: 22px;
}

.fv-hero p,
.fv-card p,
.fv-contact-copy {
  color: #424a52;
  font-size: 18px;
  line-height: 1.72;
}

.fv-hero-copy > p:not(.fv-location) {
  margin-bottom: 14px;
  max-width: 78ch;
}

.fv-hero .fv-location {
  font-size: 14px;
}

.fv-portrait {
  aspect-ratio: 1;
  background: #eceff1;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(35, 38, 41, 0.09);
  overflow: hidden;
  width: 228px;
}

.fv-portrait img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  width: 100%;
}

.fv-inline-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
}

.fv-inline-links a {
  font-size: 15px;
  padding-block: 4px;
}

.fv-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.fv-profile-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(47, 102, 112, 0.4);
  border-radius: 6px;
  color: var(--accent);
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  white-space: nowrap;
}

.fv-profile-button svg {
  flex: 0 0 18px;
  height: 18px;
  width: 18px;
}

.fv-profile-button:hover {
  background: #edf3f3;
  border-color: var(--accent);
  color: #244f57;
}

.fv-profile-button:active {
  background: #e1ecec;
}

.fv-section {
  padding: 44px 0 28px;
  position: relative;
  scroll-margin-top: 24px;
}

.fv-section-title {
  font-family: var(--display-font);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 40px;
  padding-bottom: 20px;
  position: relative;
}

.fv-section-title::after {
  background: var(--accent);
  border-radius: 2px;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 52px;
}

.fv-section-head {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  justify-content: space-between;
}

.fv-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 30px;
}

.fv-card h3 {
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
}

.fv-card p {
  margin-top: 14px;
  max-width: 100ch;
}

.fv-card-head,
.fv-project-meta {
  align-items: baseline;
  display: flex;
  gap: 12px 28px;
  justify-content: space-between;
}

.fv-card-head h3 {
  flex: 1;
  min-width: 0;
}

.fv-organization {
  color: var(--accent);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
}

.fv-period {
  color: #697178;
  flex: 0 0 auto;
  font-family: var(--mono-font);
  font-size: 13px;
  line-height: 1.7;
}

.fv-timeline {
  padding-left: 32px;
  position: relative;
}

.fv-timeline::before {
  background: var(--line);
  bottom: 26px;
  content: "";
  left: 8px;
  position: absolute;
  top: 31px;
  width: 2px;
}

.fv-timeline-item {
  margin-bottom: 16px;
  position: relative;
}

.fv-timeline-item::before {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
  height: 16px;
  left: -32px;
  position: absolute;
  top: 23px;
  width: 16px;
}

#experience .fv-section-title,
#projects .fv-section-title {
  font-size: 34px;
  margin-bottom: 28px;
  padding-bottom: 16px;
}

.fv-timeline .fv-entry,
.fv-project-list .fv-project {
  padding: 18px 22px;
}

.fv-timeline .fv-entry h3,
.fv-project-list .fv-project h3 {
  font-size: 20px;
  line-height: 1.4;
}

.fv-timeline .fv-entry p,
.fv-project-list .fv-project p {
  font-size: 15px;
  line-height: 1.65;
  margin-top: 8px;
}

.fv-timeline .fv-organization {
  font-size: 15px;
}

.fv-timeline .fv-period,
.fv-project .fv-period {
  font-size: 12px;
}

.fv-timeline-education::before {
  border-color: #8b9299;
}

.fv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.fv-tags li {
  background: #fafafb;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: #626c73;
  font-family: var(--mono-font);
  font-size: 12px;
  line-height: 1.6;
  padding: 5px 12px;
}

.fv-project-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 0 20px;
}

.fv-project-count {
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 13px;
}

.fv-filter select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  min-height: 44px;
  padding: 8px 32px 8px 12px;
  width: 210px;
}

.fv-project-list {
  display: grid;
  gap: 16px;
}

.fv-project-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.fv-project-actions .fv-button {
  justify-content: center;
  min-width: 200px;
}

.fv-button svg {
  flex: 0 0 16px;
  height: 16px;
  width: 16px;
}

.fv-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  gap: 12px;
  min-height: 44px;
  padding: 10px 18px;
}

.fv-button:hover {
  background: #edf3f3;
}

.fv-project {
  scroll-margin-top: 24px;
}

.fv-project-meta {
  margin-bottom: 8px;
}

.fv-project-meta .fv-organization {
  font-size: 13px;
}

.fv-project .fv-tags {
  gap: 6px;
}

.fv-project .fv-tags li {
  font-size: 11px;
  line-height: 1.5;
  padding: 3px 9px;
}

.fv-project .fv-card-bottom {
  margin-top: 12px;
}

.fv-card-bottom {
  align-items: end;
  display: flex;
  gap: 18px 28px;
  justify-content: space-between;
  margin-top: 20px;
}

.fv-card-bottom .fv-tags {
  margin-top: 0;
}

.fv-text-link {
  align-items: baseline;
  display: inline-flex;
  gap: 8px;
  font-size: 14px;
  padding-block: 6px;
}

.fv-card-bottom > a {
  flex-shrink: 0;
  white-space: nowrap;
}

.fv-contact-copy {
  max-width: 78ch;
}

.fv-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 24px;
}

/* Project pages use the same typography, headings, tags and image components. */
.fv-detail-page {
  --fv-page-right: 64px;
}

.fv-back {
  margin-bottom: 28px;
}

.fv-detail-hero {
  margin-bottom: 40px;
}

.fv-eyebrow {
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 13px;
  margin-bottom: 16px;
}

.fv-detail-hero h1 {
  font-family: var(--display-font);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.18;
  max-width: 38ch;
}

.fv-detail-abstract {
  color: #424a52;
  font-size: 18px;
  line-height: 1.85;
  margin-top: 24px;
  max-width: 90ch;
}

.fv-detail-meta {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px 40px;
  grid-template-columns: minmax(120px, 0.5fr) 1fr 1fr;
  margin-top: 32px;
  padding-top: 24px;
}

.fv-detail-meta dt {
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 12px;
  margin-bottom: 8px;
}

.fv-detail-meta dd {
  font-size: 14px;
  line-height: 1.8;
}

.fv-figure {
  min-width: 0;
}

.fv-figure-link {
  display: block;
}

.fv-figure img {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 320px;
  object-fit: contain;
  padding: 16px;
  width: 100%;
}

.fv-primary-figure img {
  height: 440px;
}

.fv-figure figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 10px;
}

.fv-gallery {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.fv-detail-layout {
  align-items: start;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1fr) 260px;
  margin-top: 60px;
}

.fv-story {
  min-width: 0;
}

.fv-story-section {
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
  padding-bottom: 36px;
  scroll-margin-top: 28px;
}

.fv-story-section .fv-section-title {
  font-size: 30px;
  margin-bottom: 26px;
  padding-bottom: 16px;
}

.fv-story-section p,
.fv-story-section li {
  color: #424a52;
  font-size: 16px;
  line-height: 1.9;
  max-width: 90ch;
}

.fv-story-section p,
.fv-story-section ul,
.fv-table-wrap {
  margin-top: 16px;
}

.fv-story-section h3 {
  font-family: var(--display-font);
  font-size: 22px;
  line-height: 1.4;
  margin-top: 26px;
}

.fv-story-section ul {
  padding-left: 22px;
}

.fv-story-section li {
  list-style: disc;
  padding-left: 4px;
}

.fv-story-section li + li {
  margin-top: 8px;
}

.fv-story-section code {
  background: #edf1f3;
  border-radius: 3px;
  font-family: var(--mono-font);
  font-size: 0.9em;
  padding: 2px 4px;
}

.fv-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.fv-table-wrap table {
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.7;
  min-width: 540px;
  width: 100%;
}

.fv-table-wrap th,
.fv-table-wrap td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.fv-table-wrap th {
  background: #edf1f3;
  font-weight: 500;
}

.fv-detail-aside {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.fv-detail-aside > * + * {
  margin-top: 32px;
}

.fv-detail-aside h2 {
  font-family: var(--display-font);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 14px;
}

.fv-detail-aside li,
.fv-detail-aside p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.fv-detail-aside nav li + li,
.fv-sources li + li {
  margin-top: 8px;
}

.fv-detail-aside nav a {
  display: block;
  padding-block: 4px;
}

.fv-detail-aside .fv-tags {
  margin-top: 0;
}

.fv-detail-aside .fv-tags li {
  font-size: 11px;
  padding: 4px 10px;
}

.fv-metric strong,
.fv-metric span {
  display: block;
}

.fv-metric strong {
  color: var(--text);
  font-family: var(--mono-font);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
}

.fv-artifacts {
  margin-top: 16px;
}

.fv-project-pagination {
  border-bottom: 1px solid var(--line);
  padding: 4px 0 28px;
}

@media (max-width: 1100px) {
  .fv-card-head {
    flex-wrap: wrap;
  }

  .fv-detail-layout {
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}

@media (max-width: 980px) {
  .fv-page {
    --fv-page-left: 36px;
    --fv-page-right: 84px;
  }

  .fv-detail-page {
    --fv-page-right: 36px;
  }

  .fv-intro {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 168px;
  }

  .fv-hero h1 {
    font-size: 48px;
  }

  .fv-portrait {
    width: 168px;
  }

  .fv-nav nav {
    gap: 12px 20px;
  }

  .fv-card-head h3 {
    flex-basis: 100%;
  }
}

@media (max-width: 760px) {
  .fv-profile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 360px;
  }

  .fv-profile-button {
    padding-inline: 10px;
  }

  .fv-helix {
    --helix-opacity: 0.28;
  }

  .fv-page {
    --fv-page-left: 24px;
    --fv-page-right: 72px;
    padding: 24px var(--fv-page-right) 36px var(--fv-page-left);
  }

  .fv-detail-page {
    --fv-page-right: 24px;
  }

  .fv-nav {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
  }

  .fv-nav nav {
    gap: 6px 18px;
  }

  .fv-hero {
    display: block;
    margin-bottom: 52px;
    min-height: 0;
  }

  .fv-intro {
    align-items: start;
    display: flex;
    flex-direction: column-reverse;
    gap: 26px;
  }

  .fv-hero h1 {
    font-size: 42px;
  }

  .fv-hero h2 {
    font-size: 19px;
  }

  .fv-hero p,
  .fv-card p,
  .fv-contact-copy {
    font-size: 17px;
  }

  .fv-portrait {
    width: 148px;
  }

  .fv-section {
    padding-top: 34px;
  }

  .fv-section-title {
    font-size: 34px;
    margin-bottom: 30px;
    padding-bottom: 16px;
  }

  .fv-timeline {
    padding-left: 22px;
  }

  .fv-timeline::before {
    left: 5px;
    top: 28px;
  }

  .fv-timeline-item::before {
    height: 14px;
    left: -24px;
    top: 21px;
    width: 14px;
  }

  #experience .fv-section-title,
  #projects .fv-section-title {
    font-size: 30px;
    margin-bottom: 24px;
  }

  .fv-timeline .fv-entry,
  .fv-project-list .fv-project {
    padding: 16px;
  }

  .fv-timeline .fv-entry h3,
  .fv-project-list .fv-project h3 {
    font-size: 18px;
  }

  .fv-timeline .fv-entry p,
  .fv-timeline .fv-organization,
  .fv-project-list .fv-project p {
    font-size: 14px;
  }

  .fv-timeline .fv-period,
  .fv-project .fv-period {
    font-size: 11px;
  }

  .fv-card {
    padding: 22px 20px;
  }

  .fv-card h3 {
    font-size: 22px;
  }

  .fv-organization {
    display: block;
    font-size: 15px;
    margin-top: 4px;
  }

  .fv-card-head,
  .fv-project-meta,
  .fv-card-bottom {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .fv-card-head h3 {
    flex-basis: auto;
  }

  .fv-project-meta .fv-organization {
    margin: 0;
  }

  .fv-project-meta {
    gap: 4px;
  }

  .fv-period {
    font-size: 12px;
  }

  .fv-card-bottom {
    gap: 18px;
  }

  .fv-project .fv-card-bottom {
    gap: 10px;
  }

  .fv-project .fv-card-bottom > a {
    align-items: center;
    min-height: 44px;
  }

  .fv-tags {
    gap: 6px;
  }

  .fv-tags li {
    font-size: 11px;
    padding: 4px 10px;
  }

  .fv-project-controls {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    padding-top: 0;
  }

  .fv-section-head > div {
    width: 100%;
  }

  .fv-filter,
  .fv-filter select {
    width: 100%;
  }

  .fv-footer {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .fv-detail-hero h1 {
    font-size: 34px;
  }

  .fv-detail-abstract {
    font-size: 16px;
  }

  .fv-detail-meta,
  .fv-detail-layout,
  .fv-gallery {
    grid-template-columns: 1fr;
  }

  .fv-detail-layout {
    gap: 16px;
    margin-top: 40px;
  }

  .fv-detail-meta {
    gap: 20px;
  }

  .fv-figure img,
  .fv-primary-figure img {
    height: auto;
    max-height: 380px;
    padding: 10px;
  }

  .fv-detail-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
  }

  .fv-story-section .fv-section-title {
    font-size: 28px;
  }
}

@media (max-width: 420px) {
  .fv-page {
    --fv-page-left: 20px;
    --fv-page-right: 68px;
  }

  .fv-detail-page {
    --fv-page-right: 20px;
  }

  .fv-nav,
  .fv-nav nav,
  .fv-inline-links {
    gap: 10px 16px;
  }

  .fv-hero h1 {
    font-size: 36px;
  }

  .fv-hero h2 {
    font-size: 18px;
  }

  .fv-hero p,
  .fv-card p,
  .fv-contact-copy {
    font-size: 16px;
  }

  .fv-card {
    padding: 20px 16px;
  }

  .fv-card h3 {
    font-size: 20px;
  }

  .fv-section-title {
    font-size: 30px;
  }

  .fv-detail-hero h1 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fv-helix {
    transition: none;
  }
}
