/* Homepage only: landscape greens, white research surfaces and a lime finish.
   Shared styles and project detail pages stay independent of these refinements. */
.portfolio-home {
  --home-ink: #20372c;
  --home-accent: #405b29;
  --home-blue: var(--brand-blue);
  --home-radius: 8px;
  --home-rule: rgba(32, 55, 44, .24);
  --home-meadow: #e2e9d8;
  --home-leaf: #eaf0df;
  --home-frame-hover: #ccdab8;
  --home-lime: #d5eb9a;
}
.portfolio-home #experience,
.portfolio-home #projects,
.portfolio-home #about,
.portfolio-home #contact,
.portfolio-home footer {
  --ink: #20372c;
  --sub: #3d5144;
  --accent: #405b29;
  --accent-deep: #20372c;
  --line: rgba(32, 55, 44, .24);
  --line-strong: #405b29;
  --home-meadow: #e2e9d8;
  --home-leaf: #eaf0df;
  --home-lime: #d5eb9a;
}

/* The photograph reaches the exact starting color of Experience at the join. */
.portfolio-home .intro-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 -1px;
  height: clamp(160px, 20vw, 260px);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(226,233,216,0), rgba(226,233,216,.72) 75%, var(--home-meadow));
}
/* The same green continues through Experience, then fades into the portfolio. */
.portfolio-home #experience {
  background: linear-gradient(180deg, var(--home-meadow) 0%, #e8eddf 72%, #fff 100%);
}
.portfolio-home #experience .timeline,
.portfolio-home #experience .timeline > div {
  border-color: var(--line);
}
.portfolio-home #experience .timeline p { color: var(--sub); }

/* White around every research image; green is reserved for type and interaction. */
.portfolio-home #projects { background: #fff; }
.portfolio-home #projects .sectionhead { border-top-color: var(--line); }
.portfolio-home #projects .sectionhead > div > .eyebrow::before {
  background: var(--accent);
}
.portfolio-home #projects .science-showcase h2,
.portfolio-home #projects .science-showcase__frame,
.portfolio-home #projects .science-showcase__caption {
  border-color: var(--line);
}
.portfolio-home #projects .science-showcase__status { color: var(--sub); }

/* White enters About, then a light olive shade carries into Contact. */
.portfolio-home #about {
  background: linear-gradient(180deg, #fff 0, var(--home-leaf) clamp(72px, 8vw, 112px));
}
.portfolio-home #about .about-toolkit { border-top-color: var(--line); }
.portfolio-home #about .about-copy h2 em { color: var(--accent); }
.portfolio-home #about .about-toolkit-label { color: var(--accent-deep); }

.portfolio-home #contact.section.wrap {
  background: linear-gradient(180deg, var(--home-leaf) 0%, var(--home-lime) 78%);
}
.portfolio-home #contact .form-field input,
.portfolio-home #contact .form-field textarea { border-bottom-color: var(--accent); }
.portfolio-home #contact .form-field input:focus,
.portfolio-home #contact .form-field textarea:focus { border-bottom-color: var(--ink); }
.portfolio-home #contact .form-field input::placeholder,
.portfolio-home #contact .form-field textarea::placeholder { color: var(--sub); }
.portfolio-home #contact .contact-send:hover {
  background: var(--home-leaf);
  color: var(--ink);
}

/* The footer completes the same color field instead of introducing another one. */
.portfolio-home footer {
  background: var(--home-lime);
  border-color: var(--line);
}

/* The same restrained accents identify navigation, sections and the name. */
.portfolio-home .nav,
.portfolio-home .nav::before { border-color: var(--home-rule); }
.portfolio-home .brand,
.portfolio-home .nav-toggle,
.portfolio-home .navlinks a,
.portfolio-home .navmark { color: var(--home-ink); }
.portfolio-home .brand-dot { color: var(--home-blue); }
.portfolio-home .hero-modern .period {
  display: inline-block;
  /* A graphic mark has no text for browser translation or font substitution. */
  width: .13em;
  height: .13em;
  margin-left: .08em;
  vertical-align: baseline;
  border-radius: 50%;
  background: currentColor;
  color: var(--home-blue);
  line-height: 0;
  letter-spacing: 0;
  overflow: hidden;
  user-select: none;
}
.portfolio-home .navlinks a::after { background: var(--home-accent); }
.portfolio-home .navlinks a.is-current { color: var(--home-accent); }
.portfolio-home .navlinks a.is-current::after { height: 3px; }
.portfolio-home .nav a:focus-visible,
.portfolio-home .nav button:focus-visible { outline-color: var(--home-blue); }
.portfolio-home .hero-modern .hero-meta,
.portfolio-home .hero-linkedin,
.portfolio-home #research .education > div { border-color: var(--home-rule); }
.portfolio-home .linkedin-symbol {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: var(--home-blue);
  color: #fff;
  font-size: 28px;
}
.portfolio-home .hero-linkedin:hover .linkedin-symbol {
  background: #084b91;
  color: #fff;
  outline: none;
}
.portfolio-home .hero-modern .hero-description + .hero-description { margin-top: 1rem; }
.portfolio-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px clamp(24px, 3vw, 36px);
  margin-top: 28px;
}
.portfolio-home .hero-modern .hero-actions .textlink {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  margin-top: 0;
  font-weight: 700;
}
.portfolio-home #research .sectionhead h2 { color: var(--home-ink); }
.portfolio-home #research .sectionhead > div > .eyebrow { color: #122318; }
.portfolio-home #experience .sectionhead > div > .eyebrow,
.portfolio-home #projects .sectionhead > div > .eyebrow,
.portfolio-home #about .about-copy > .eyebrow,
.portfolio-home #contact .contact-intro > .eyebrow { color: var(--home-accent); }
.portfolio-home .sectionhead > div > .eyebrow::before,
.portfolio-home #about .about-copy > .eyebrow::before,
.portfolio-home #contact .contact-intro > .eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 4px;
  flex: 0 0 32px;
  background: var(--home-accent);
}
.portfolio-home #contact .contact-intro > .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

/* Projects and lab work share a frame; only project links lift on interaction. */
.portfolio-home #projects .project-link {
  position: relative;
  border-radius: var(--home-radius);
}
.portfolio-home #projects .projectcard,
.portfolio-home #projects .science-showcase__slideshow {
  --card-surface: #fff;
  --card-frame-start: var(--home-leaf);
  border: 6px solid transparent;
  border-radius: var(--home-radius);
  outline: 0;
  overflow: hidden;
  background:
    linear-gradient(var(--card-surface), var(--card-surface)) padding-box,
    linear-gradient(145deg, var(--card-frame-start), #f3f7ee 55%, #fff) border-box;
  box-shadow: 0 2px 14px rgba(160, 184, 128, .16);
}
.portfolio-home #projects .projectcard {
  height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.portfolio-home #projects .projectcard:not(.projectcard--featured) {
  display: flex;
  flex-direction: column;
}
.portfolio-home #projects .projectcard .cardimage {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--home-rule);
}
.portfolio-home #projects .cleansort-card .cardimage {
  position: relative;
  overflow: hidden;
  background: #000;
}
/* Fill the 16:10 card with the artwork, keeping all labels and symbols visible.
   Crop x=44, y=40, width=956.8, height=598 from the 1153x639 source. */
.portfolio-home #projects .cleansort-card .cleansort-project-image {
  position: absolute;
  left: -4.5987%;
  top: -6.689%;
  width: 120.5059%;
  height: auto;
  max-width: none;
  object-fit: contain !important;
}
/* Swap the 16:10 frame dimensions before rotating the original photograph. */
.portfolio-home #projects .remote-sensing-card .cardimage img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62.5%;
  height: auto;
  aspect-ratio: 10 / 16;
  max-width: none;
  padding: 0;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%) rotate(90deg);
}
.portfolio-home #projects .projectcard .cardbody {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 26px;
  background: #fff;
}
.portfolio-home #projects .cardbody .eyebrow { color: var(--home-accent); }
.portfolio-home #projects .cardbody small { width: 100%; margin-top: auto; }
.portfolio-home #projects .projectcard--featured {
  --card-surface: var(--home-leaf);
  display: grid;
  gap: 0;
  align-items: stretch;
}
.portfolio-home #projects .projectcard--featured .cardimage {
  border: 0;
  border-right: 1px solid var(--home-rule);
}
.portfolio-home #projects .projectcard--featured .cardbody {
  padding: clamp(26px, 3vw, 40px);
  background: var(--home-leaf);
}
.portfolio-home #projects .project-cta {
  align-self: flex-start;
  padding: 5px 0;
  background: transparent;
  color: var(--home-accent);
  border-color: var(--home-accent);
  transition: color 180ms ease, border-color 180ms ease;
}
.portfolio-home #projects .project-link:focus-visible {
  z-index: 1;
  outline: 2px solid var(--home-blue);
  outline-offset: 4px;
}
.portfolio-home #projects .project-link:focus-visible .projectcard {
  --card-frame-start: var(--home-frame-hover);
  transform: none;
  box-shadow: 0 12px 48px 8px rgba(32, 55, 44, .18);
}
.portfolio-home #projects .project-link:focus-visible h3 { color: var(--home-blue); }
.portfolio-home #projects .project-link:focus-visible .project-cta {
  padding-inline: 0;
  background: transparent;
  color: var(--home-blue);
  border-color: var(--home-blue);
}
@media (hover: hover) and (pointer: fine) {
  .portfolio-home #projects .project-link:hover { z-index: 1; }
  .portfolio-home #projects .project-link:hover .projectcard {
    --card-frame-start: var(--home-frame-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 48px 8px rgba(32, 55, 44, .18);
  }
  .portfolio-home #projects .project-link:hover h3 { color: var(--home-blue); }
  .portfolio-home #projects .project-link:hover .project-cta {
    padding-inline: 0;
    background: transparent;
    color: var(--home-blue);
    border-color: var(--home-blue);
  }
}
@media (hover: none) {
  .portfolio-home #projects .project-link:active .projectcard {
    --card-frame-start: var(--home-frame-hover);
  }
}

/* Quiet image edges; scientific images retain their natural colors and framing. */
.portfolio-home .hero-modern .portrait,
.portfolio-home #about .lab-photo img {
  border-radius: var(--home-radius);
  outline: 1px solid var(--home-rule);
  outline-offset: -1px;
}
.portfolio-home #about .lab-photo img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.portfolio-home #projects .science-showcase h2 { color: var(--home-accent); }
.portfolio-home #projects .science-showcase__slideshow {
  --card-surface: var(--home-leaf);
}
.portfolio-home #projects .science-showcase__frame { border: 0; }
/* Show rows 560–1712 of the 1536 × 2048 photograph as a centered 4:3 crop. */
.portfolio-home #projects .science-showcase__frame.is-off-axis .science-showcase__image {
  position: absolute;
  top: -48.611111%;
  left: 50%;
  width: auto;
  height: 177.777778%;
  max-width: none;
  max-height: none;
  transform: translateX(-50%);
}
.portfolio-home #projects .science-showcase__frame:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: -3px;
}
.portfolio-home #projects .science-showcase__caption {
  padding: 18px 22px;
  border: 0;
  background: var(--home-leaf);
}
.portfolio-home #projects .science-showcase__status {
  color: var(--home-accent);
  font-variant-numeric: tabular-nums;
}
.portfolio-home #projects .science-showcase__caption-copy {
  scrollbar-width: none;
}
.portfolio-home #projects .science-showcase__caption-copy::-webkit-scrollbar {
  display: none;
}
.portfolio-home #projects .science-showcase__reference-area {
  display: grid;
  margin-top: 6px;
}
.portfolio-home #projects .science-showcase__reference {
  grid-area: 1 / 1;
  margin: 0;
  max-width: none;
  color: var(--home-ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  visibility: hidden;
}
.portfolio-home #projects .science-showcase__reference.is-visible {
  visibility: visible;
}

/* Stronger headings and readable supporting text, without changing the layout. */
.portfolio-home .navlinks { font-size: 1.125rem; font-weight: 500; }
.portfolio-home .nav.nav-enhanced .navlinks a { font-size: 1.125rem; }
.portfolio-home .navmark,
.portfolio-home .nav-toggle { font-size: 1.125rem; }
.portfolio-home #research .sectionhead > div > .eyebrow,
.portfolio-home #experience .sectionhead > div > .eyebrow,
.portfolio-home #projects .sectionhead > div > .eyebrow,
.portfolio-home #about .about-copy > .eyebrow,
.portfolio-home #contact .contact-intro > .eyebrow {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .045em;
}
.portfolio-home #research .sectionhead h2,
.portfolio-home #experience .sectionhead h2,
.portfolio-home #projects .sectionhead h2,
.portfolio-home #about .about-copy h2,
.portfolio-home #contact .contact-intro h2 { font-weight: 750; }
.portfolio-home .hero-modern .hero-fields {
  color: #122318;
  font-size: clamp(1.25rem, 1.6vw, 1.375rem);
  font-weight: 650;
  line-height: 1.65;
  text-wrap: balance;
}
.portfolio-home .hero-modern .hero-equation {
  color: #122318;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .035em;
  text-wrap: balance;
}
.portfolio-home .hero-modern .hero-meta .eyebrow,
.portfolio-home .hero-modern .hero-aside > span,
.portfolio-home .linkedin-label { font-size: 1.125rem; }
.portfolio-home .hero-modern .status,
.portfolio-home .hero-modern .hero-aside small,
.portfolio-home .hero-modern .textlink { font-size: 1.125rem; }
.portfolio-home .hero-modern .hero-meta .eyebrow {
  letter-spacing: .035em;
  line-height: 1.6;
  text-wrap: balance;
}
.portfolio-home .hero-modern .hero-aside strong,
.portfolio-home .linkedin-label strong { font-size: 1.125rem; }
.portfolio-home .hero-modern .hero-description,
.portfolio-home #experience .timeline p,
.portfolio-home #experience .timeline strong,
.portfolio-home #projects .sectionhead > p,
.portfolio-home #projects .cardbody p,
.portfolio-home #about .about-copy p,
.portfolio-home #contact .contact-intro > p { font-size: 1.1875rem; }
.portfolio-home #research .education .eyebrow {
  font-size: 1.125rem;
  letter-spacing: .035em;
  line-height: 1.6;
}
.portfolio-home #research .education h3 {
  font-size: clamp(1.75rem, 2.65vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
.portfolio-home #research .education p,
.portfolio-home #research .education .education-institution,
.portfolio-home #research .education .education-detail {
  font-size: 1.25rem;
  line-height: 1.75;
}
.portfolio-home #research .education .education-institution { font-weight: 600; }
.portfolio-home #research .education .education-thesis-grade {
  white-space: nowrap;
}

/* Native disclosures keep coursework compact, keyboard accessible and usable without JS. */
.portfolio-home #research .education { align-items: start; }
.portfolio-home #research .education-coursework {
  margin-top: 24px;
  border-block: 1px solid var(--home-rule);
  color: var(--home-ink);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.portfolio-home #research .education-coursework > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  padding: 13px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
}
.portfolio-home #research .education-coursework > summary::-webkit-details-marker { display: none; }
.portfolio-home #research .education-coursework > summary::marker { content: ""; }
.portfolio-home #research .education-coursework > summary:hover { color: var(--home-blue); }
.portfolio-home #research .education-coursework > summary:focus-visible {
  color: var(--home-blue);
  outline: 2px solid var(--home-blue);
  outline-offset: 4px;
}
.portfolio-home #research .education-coursework-toggle {
  position: relative;
  flex: 0 0 16px;
  height: 16px;
}
.portfolio-home #research .education-coursework-toggle::before,
.portfolio-home #research .education-coursework-toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.portfolio-home #research .education-coursework-toggle::before { inset: 7px 0 auto; height: 2px; }
.portfolio-home #research .education-coursework-toggle::after { inset: 0 auto 0 7px; width: 2px; }
.portfolio-home #research .education-coursework[open] .education-coursework-toggle::after { display: none; }
.portfolio-home #research .education-coursework-content { padding: 6px 0 20px; }
.portfolio-home #research .education-coursework-columns,
.portfolio-home #research .education-module-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3ch;
  column-gap: 20px;
  align-items: baseline;
}
.portfolio-home #research .education-coursework-columns {
  padding-bottom: 8px;
  font-size: 1rem;
  font-weight: 650;
}
.portfolio-home #research .education-coursework-columns > :last-child { justify-self: end; }
.portfolio-home #research .education-module-list { margin: 0; }
.portfolio-home #research .education-module-list > div {
  padding-block: 10px;
  border-top: 1px solid var(--home-rule);
}
.portfolio-home #research .education-module-list dt { min-width: 0; overflow-wrap: break-word; }
.portfolio-home #research .education-module-list dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.portfolio-home #research .education-coursework-projects-title {
  margin: 24px 0 4px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
}
.portfolio-home #research .education-coursework-projects { list-style: none; margin: 0; padding: 0; }
.portfolio-home #research .education-coursework-projects li { border-top: 1px solid var(--home-rule); }
.portfolio-home #research .education-coursework-projects a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding-block: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--home-rule);
}
.portfolio-home #research .education-coursework-projects a span { flex: 0 0 auto; }
.portfolio-home #research .education .education-coursework-note {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--home-ink);
}

.portfolio-home #projects .cardbody .eyebrow {
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: .015em;
}
.portfolio-home #projects .cardbody h3 { font-weight: 700; }
.portfolio-home #experience .timeline time,
.portfolio-home #projects .cardbody small,
.portfolio-home #about .about-toolkit-label,
.portfolio-home #contact .form-note { font-size: 1.125rem; line-height: 1.7; }
.portfolio-home #about .about-toolkit-label { letter-spacing: .045em; }
.portfolio-home #projects .project-cta,
.portfolio-home #about .about-toolkit-workflow,
.portfolio-home #about .about-toolkit-engineering,
.portfolio-home #contact .form-field label,
.portfolio-home #contact .form-field input,
.portfolio-home #contact .form-field textarea,
.portfolio-home #contact .contact-email,
.portfolio-home #contact .contact-send { font-size: 1.125rem; }
.portfolio-home #contact .contact-email { max-width: 100%; overflow-wrap: anywhere; }
.portfolio-home #projects .science-showcase h2 {
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  font-weight: 700;
}
.portfolio-home #projects .science-showcase__status { font-size: 1.125rem; }
.portfolio-home #projects .science-showcase__title {
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
}
.portfolio-home .footergrid,
.portfolio-home .footergrid strong { font-size: 1.125rem; }
.portfolio-home .footergrid { flex-wrap: wrap; }
.portfolio-home footer .footer-legal,
.portfolio-home footer .footer-motto { font-weight: 700; }
.portfolio-home footer .footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: .06em;
  color: var(--home-blue);
  font: 700 1.25rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.portfolio-home footer .footer-linkedin-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.14em;
  height: 1.14em;
  padding: 0 .05em;
  border-radius: 2px;
  background: var(--home-blue);
  color: #fff;
  letter-spacing: -.06em;
}
.portfolio-home footer .footer-linkedin:hover { color: var(--home-blue); }
.portfolio-home footer .footer-linkedin:hover .footer-linkedin-name {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The hero blue consistently identifies links on hover and keyboard focus. */
.portfolio-home a:is(:hover, :focus-visible),
.portfolio-home .navlinks a:is(:hover, :focus-visible),
.portfolio-home .hero-modern .textlink:is(:hover, :focus-visible),
.portfolio-home #research .education h3 a:is(:hover, :focus-visible),
.portfolio-home #experience .timeline strong a:is(:hover, :focus-visible),
.portfolio-home #contact .contact-email:is(:hover, :focus-visible),
.portfolio-home .hero-linkedin:is(:hover, :focus-visible) .linkedin-label,
.portfolio-home .hero-linkedin:is(:hover, :focus-visible) .linkedin-label strong {
  color: var(--home-blue);
  text-decoration-color: var(--home-blue);
}
.portfolio-home .hero-modern .textlink:is(:hover, :focus-visible),
.portfolio-home #research .education h3 a:is(:hover, :focus-visible),
.portfolio-home #experience .timeline strong a:is(:hover, :focus-visible),
.portfolio-home #contact .contact-email:is(:hover, :focus-visible) {
  border-bottom-color: var(--home-blue);
}
.portfolio-home .navlinks a:is(:hover, :focus-visible)::after {
  background: var(--home-blue);
}
.portfolio-home a:focus-visible,
.portfolio-home .hero-modern a:focus-visible,
.portfolio-home #research a:focus-visible,
.portfolio-home #experience .timeline a:focus-visible {
  outline-color: var(--home-blue);
}

/* A quiet light behind the opening and contact content, with no page overlay. */
.portfolio-home .ambient-light { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .portfolio-home .hero-modern,
  .portfolio-home #contact {
    position: relative;
    isolation: isolate;
  }
  .portfolio-home .ambient-light {
    --light-color: 120, 180, 235;
    --light-opacity: .075;
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 220ms ease;
  }
  .portfolio-home #contact .ambient-light {
    --light-color: 255, 255, 255;
    --light-opacity: .14;
  }
  .portfolio-home .ambient-light.is-visible { opacity: 1; }
  .portfolio-home .ambient-light__spot {
    position: absolute;
    top: 0;
    left: 0;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    background: radial-gradient(circle closest-side,
      rgba(var(--light-color), var(--light-opacity)) 0%,
      rgba(var(--light-color), 0) 100%);
    will-change: transform;
  }
}

@media (max-width: 800px) {
  .portfolio-home .nav.nav-enhanced .navlinks { border-color: var(--home-rule); }
  .portfolio-home #projects .projectcard--featured .cardimage {
    border-right: 0;
    border-bottom: 1px solid var(--home-rule);
  }
  .portfolio-home #projects .projectcard .cardbody { padding: 22px; }
  .portfolio-home #projects .science-showcase__caption { padding: 16px 18px; }
}
@media (max-width: 520px) {
  .portfolio-home .hero-profile-footer { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .portfolio-home .hero-linkedin {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--home-rule);
  }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-home #projects .projectcard,
  .portfolio-home #projects .project-cta { transition: none; }
  .portfolio-home #projects .project-link:hover .projectcard,
  .portfolio-home #projects .project-link:focus-visible .projectcard { transform: none; }
}
