:root {
  --color-brand-700: #0c6663;
  --color-brand-600: #11807d;
  --color-brand-200: #98c9c6;
  --color-brand-100: #e9f6f5;
  --color-brand-wash: rgba(18, 138, 134, 0.1);
  --color-brand-faint: rgba(18, 138, 134, 0.025);
  --color-ink-900: #20343d;
  --color-ink-800: #243640;
  --color-ink-700: #34474f;
  --color-ink-600: #53656c;
  --color-ink-500: #66757b;
  --color-surface: #ffffff;
  --color-surface-subtle: #f8faf9;
  --color-border: #e1e7e9;
  --color-border-soft: #e5eaeb;
  --font-display: "Source Sans Pro", "Source Sans Fallback", Helvetica, sans-serif;
  --font-body: "Merriweather", "Merriweather Fallback", Georgia, serif;
  --font-typewriter: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --radius-card: 0.75rem;
  --radius-compact: 0.5rem;
  --radius-control: 0.3rem;

  --eyebrow-size: max(var(--text-floor), 0.7rem);
  --eyebrow-tracking: 0.12em;
  --shadow-card: 0 0.45rem 1.35rem rgba(3, 14, 30, 0.07);
  --shadow-card-hover: 0 0.9rem 2rem rgba(3, 14, 30, 0.12);
  --motion-fast: 150ms;
  --motion-standard: 220ms;
  --motion-slow: 320ms;
  --motion-reveal: 480ms;
  --motion-spatial: 520ms;
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.22, 0.8, 0.32, 1);
}

@media only screen and (max-width: 600px) {
  .aboutblock {
    text-align: left !important;
  }
}

.intro-swipe {
  height: 132vh;
  margin: 0 0 0.5rem;
}

.intro-swipe__stage {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  height: 100svh;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.intro-swipe__head {
  display: none;
  flex: 0 0 auto;
  padding-bottom: 1.25rem;
}

#main > .post header.major.intro-swipe__head {
  text-align: left;
}

.intro-swipe__text h2,
.intro-swipe__head .intro-swipe__title {
  margin: 0 0 0.9rem;

  color: #20343d !important;
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-transform: none;
}

.intro-swipe__row {
  flex: 0 0 auto;
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.intro-swipe__photo {
  flex: 0 0 auto;
  margin: 0;
  transform: translateX(calc((1 - var(--p, 1)) * var(--swipe-photo, 21vw)));
  will-change: transform;
}

.intro-swipe__photo img {
  display: block;
  width: auto;
  max-width: 34vw;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 0.6rem;

  box-shadow: 0 0.45rem 1.35rem rgba(3, 14, 30, 0.1);
}

.intro-swipe__text {
  flex: 0 1 28rem;
  text-align: left;
  transform: translateX(calc((1 - var(--p, 1)) * var(--swipe-text, 55vw)));
  opacity: var(--p, 1);
  will-change: transform, opacity;
}

.intro-swipe .intro-swipe__text .aboutblock {
  margin: 0;
  text-align: left;
  line-height: 1.75;
}

@supports not (hanging-punctuation: first) {
  .intro-swipe .intro-swipe__text .aboutblock { text-wrap: pretty; }
}

.intro-swipe.is-static {
  height: auto;
}

.intro-swipe.is-static .intro-swipe__stage {
  position: static;
  height: auto;
  padding: 1rem 0 1.5rem;
}

.intro-swipe.is-static .intro-swipe__photo,
.intro-swipe.is-static .intro-swipe__text {
  transform: none !important;
  opacity: 1 !important;
}

@media screen and (max-width: 736px) {

  .intro-swipe {
    --cut: max(0px, 24svh - 150px);
    height: auto;
    margin-bottom: 0;
  }

  .intro-swipe__stage {
    position: relative;
    top: auto;
    box-sizing: border-box;
    height: auto;
    min-height: calc(100svh - var(--cut));
    padding-top: var(--cut);
    justify-content: center;

    margin: 0 -1rem;
  }

  .intro-swipe__head {
    display: block;
    padding: 0 1rem 1.25rem;
  }

  #main > .post header.major .intro-swipe__title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .intro-swipe__text .page-opening-eyebrow,
  .intro-swipe__text h2 {
    display: none;
  }

  .intro-swipe__photo {
    align-self: stretch;
  }

  .intro-swipe__row {
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 0 1rem;
  }

  .intro-swipe__photo {

    transform: translateX(calc((1 - var(--photo-p, var(--p, 1))) * var(--swipe-photo, -110vw)));
  }

  .intro-swipe__photo img {
    width: min(100%, 39vh);
    width: min(100%, 39svh);
    max-width: none;
    max-height: none;
    height: auto;
  }

  .intro-swipe__text {
    flex: 0 1 auto;
    transform: translateX(calc((1 - var(--p, 1)) * var(--swipe-text, 110vw)));
  }

  .intro-swipe__text .aboutblock {
    text-align: left;
  }

  .intro-swipe.is-static .intro-swipe__stage {
    min-height: 0;
  }
}

@media screen and (min-width: 737px) {
  #main.homepage > .post.featured {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .intro-swipe {
    height: auto;
    margin-bottom: 0;
  }

  .intro-swipe::after {
    content: "";
    display: block;
    height: 16vh;
  }

  .intro-swipe.is-static::after {
    display: none;
  }

  .intro-swipe__stage {
    top: var(--swipe-top, max(0px, calc(19vh - 7.85rem)));
    height: auto;
    margin: 0 -8rem;
    padding: 1.5rem 8rem 2rem;
  }

  .intro-swipe.is-static .intro-swipe__stage {
    margin: 0;
  }

  #main.homepage .homepage-links {
    margin-top: 1rem;
  }

  .intro-swipe .intro-swipe__text .aboutblock {
    text-wrap: pretty;
  }

  .homepage .homepage-link__desc {
    text-wrap: balance;
  }

  .intro-swipe__photo img {
    height: min(62vh, 45.33vw);
  }

  .intro-swipe__text {
    flex-grow: 1;

    opacity: calc(var(--p, 1) * var(--p, 1));
  }
}

@media screen and (min-width: 737px) and (max-width: 1280px) {
  .intro-swipe__stage {
    margin: 0 -4rem;
    padding: 1.5rem 4rem 2rem;
  }
}

.homepage .aboutblock {
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.homepage-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 1.75rem 0 2rem;
  text-align: left;
}

.homepage-link {
  position: relative;
  display: flex;
  min-height: 9.5rem;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.35rem 1.35rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(18, 138, 134, 0.07), transparent 55%),
    #ffffff;
  color: #596273;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color var(--motion-standard) ease,
    transform var(--motion-standard) var(--ease-standard),
    box-shadow var(--motion-standard) ease;
}

.homepage-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(18, 138, 134, 0.18);
  opacity: 0;
  transition: opacity var(--motion-standard) ease;
}

.homepage-link:hover,
.homepage-link:focus-visible {
  border-color: rgba(18, 138, 134, 0.55);
  box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.14);
  outline: none;
  transform: translateY(-4px);
}

.homepage-link:hover::after,
.homepage-link:focus-visible::after {
  opacity: 1;
}

.homepage-link__label {
  color: #030e1e;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.notfound .homepage-link::before {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  width: 1.6rem;
  height: 1.6rem;
  background-color: currentColor;
  color: var(--color-brand-600);
  content: "";
  -webkit-mask: var(--homepage-card-icon) center / contain no-repeat;
  mask: var(--homepage-card-icon) center / contain no-repeat;
  opacity: 0.85;
  transition: transform var(--motion-standard) var(--ease-standard);
}

.notfound .homepage-link:hover::before,
.notfound .homepage-link:focus-visible::before {
  transform: scale(1.18) rotate(-6deg);
}

.homepage-link__desc {
  color: #68727e;
  font-size: max(var(--text-floor), 0.86rem);
  line-height: 1.5;
}

#main > .notfound {
  padding: 2rem var(--opening-gutter) 3rem !important;
}

#main > .notfound header.major {
  margin-bottom: 1.5rem;
  text-align: left;
}

#main > .notfound header.major > h1 {
  margin: 0 0 0.5rem;
  color: var(--color-brand-700);
  font-family: var(--font-display);
  font-size: var(--eyebrow-size);
  font-weight: 700;
  letter-spacing: var(--eyebrow-tracking);
  line-height: 1.3;
  text-transform: uppercase;
}

#main > .notfound header.major h2 {
  margin: 0;
  color: var(--color-ink-900);
  font-family: var(--font-body);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-transform: none;
  text-wrap: balance;
}

#main > .notfound header.major p {
  max-width: 55rem;
  margin: 0.65rem 0 0;
  color: var(--color-ink-500);
  font-family: var(--font-body);
  font-size: max(var(--text-floor), 0.9rem);
  font-style: normal;
  font-weight: 300;
  line-height: 1.65;
  text-align: left !important;
}

@media screen and (min-width: 981px) {
  #main > .notfound { padding-top: 2.75rem !important; }
  #main > .notfound header.major { margin-bottom: 2.25rem; }
  #main > .notfound header.major > h1 { margin-bottom: 0.7rem; }
  #main > .notfound header.major h2 { font-size: clamp(2.4rem, 3vw, 2.9rem); line-height: 1.1; letter-spacing: -0.022em; }
  #main > .notfound header.major p { max-width: 44rem; margin-top: 0.75rem; color: #56656b; font-size: 1.1rem; line-height: 1.6; text-wrap: pretty; }
}

@media screen and (max-width: 736px) {
  #main > .notfound { padding-top: 1.5rem !important; }
}

.notfound .homepage-link {
  justify-content: center;
  min-height: 7rem;
  background-image: none;
  box-shadow: none;
}

.notfound .homepage-links { margin-top: 0; }

:root {
  --line-about: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7a4 4 0 1 0 8 0a4 4 0 0 0-8 0M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3C/svg%3E");
  --line-work: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h14a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zM8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 13a20 20 0 0 0 18 0'/%3E%3C/svg%3E");
  --line-projects: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8l-4 4 4 4M17 8l4 4-4 4M14 4l-4 16'/%3E%3C/svg%3E");
  --line-skills: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 1 0 0 12a6 6 0 1 0 0-12M8.6 13.9L7 21l5-2.6 5 2.6-1.6-7.1'/%3E%3C/svg%3E");
  --line-personal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 12.57L12 20l-7.5-7.43A5 5 0 1 1 12 6.01a5 5 0 1 1 7.5 6.57'/%3E%3C/svg%3E");
  --line-travel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l6-3 6 3 6-3v13l-6 3-6-3-6 3V7M9 4v13M15 7v13'/%3E%3C/svg%3E");
}

.line-icon--work::before { --fa-icon: var(--line-work); }
.line-icon--projects::before { --fa-icon: var(--line-projects); }
.line-icon--skills::before { --fa-icon: var(--line-skills); }
.line-icon--personal::before { --fa-icon: var(--line-personal); }

.notfound .homepage-link:nth-child(1)::before { --homepage-card-icon: var(--line-about); }
.notfound .homepage-link:nth-child(2)::before { --homepage-card-icon: var(--line-work); }
.notfound .homepage-link:nth-child(3)::before { --homepage-card-icon: var(--line-travel); }

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--motion-reveal) ease,
    transform var(--motion-reveal) var(--ease-standard);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 60;
  pointer-events: none;
}

.intro-swipe__photo.is-interactive {
  cursor: crosshair;
}

.game-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 70;
  transform: translate(-50%, 1.5rem);
  max-width: min(92vw, 30rem);
  padding: 0.85rem 1.3rem;
  border: 1px solid rgba(0, 224, 224, 0.5);
  border-radius: 0.7rem;
  background: linear-gradient(160deg, #0b1c34, #050d1c);
  color: #eafffe;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5), 0 0 1.4rem rgba(0, 224, 224, 0.3);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-standard);
}

.game-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .game-toast {
    transform: translate(-50%, 0);
    transition: opacity 0.35s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .homepage-link {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
}

@media all and (max-width: 600px) {
  .homepage-links {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: -1.5rem;
  }

  .homepage-link {
    min-height: auto;
  }
}
@media all and (max-width: 600px) {
  body {
    position: relative
  }
}
@media all and (max-width: 600px) {
  #intro {
    justify-content: center !important;
  }
}

h3 {
  color: grey !important;
}
canvas#nokey {
  background-color: #000;
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100vh !important;
  min-height: 100vh !important;
  z-index: -1;
}
@media (prefers-reduced-motion: reduce) {
  canvas#nokey {
    display: none;
  }
}
@media screen and (max-width: 736px) {
  canvas#nokey {
    display: block;
  }
}

@font-face {
  font-family: Wedding;
  src: url("../fonts/josephsophia-wordmark.woff2") format("woff2");
  font-display: block;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

:root {
  --text-floor: 0px;
}

@media screen and (max-width: 736px) {
  :root {
    --text-floor: 12px;
  }
}

html:has(> body.is-navPanel-visible),
html:has(> body.is-map-fullscreen) {
  overflow: hidden;
  scrollbar-gutter: stable;
}

#wrapper {
  overflow: clip;
}
.citc {
  height: 272px;
  object-fit: contain;
}

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

#return-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  width: 3rem;
  height: 3rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #11181a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 0.25rem 0.9rem rgba(0, 0, 0, 0.35);
  color: #28d7c5;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: box-shadow 150ms ease, opacity var(--motion-standard) ease;
}

#return-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

#return-to-top i {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1;
}

#return-to-top:hover,
#return-to-top:focus-visible {
  box-shadow: 0 0 0 1px #28d7c5, 0 0.25rem 0.9rem rgba(0, 0, 0, 0.35);
  color: #28d7c5 !important;
}

#footer a:focus-visible {
  outline: 2px solid var(--fb-lit);
  outline-offset: 2px;
}

#return-to-top:focus-visible {
  outline: 2px solid rgba(40, 215, 197, 0.9);
  outline-offset: 0;
}

@media screen and (max-width: 980px) {
  #return-to-top { right: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  #return-to-top,
  #return-to-top i {
    transition: none;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#intro {
  justify-content: center;
  padding-bottom: 4rem;
}

#intro h1 {
  margin: 0;
  letter-spacing: 0.06em;
  padding-left: 0.06em;
}

#intro .portfolio-hero__summary {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
  line-height: 1.65;
}

#intro .portfolio-hero__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.1rem 0 0;
}

#intro .portfolio-hero__actions li {
  flex: none;
  padding: 0;
}

@media screen and (min-width: 981px) {
  #intro .portfolio-hero__actions li {
    display: flex;
    width: 3rem;
  }

  #intro .portfolio-hero__actions li:first-child {
    justify-content: flex-end;
  }

  #intro .portfolio-hero__actions .portfolio-hero__cta {
    flex: none;
  }

  #intro .portfolio-hero__actions li:first-child .portfolio-hero__cta-icon {
    right: 0;
    left: auto;
  }

  #intro .portfolio-hero__actions li:first-child .portfolio-hero__cta-label {
    margin: 0 3rem 0 0;
    padding: 0 0.55rem 0 1rem;
    transform: translateX(0.4rem);
  }

  #intro .portfolio-hero__actions li:first-child .portfolio-hero__cta:hover .portfolio-hero__cta-label,
  #intro .portfolio-hero__actions li:first-child .portfolio-hero__cta:focus-visible .portfolio-hero__cta-label {
    transform: none;
  }
}

#intro .portfolio-hero__cta {
  position: relative;
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-bottom: 0 !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0.35rem 1.1rem rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: var(--font-display);
  font-size: max(var(--text-floor), 0.69rem);
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: width 0.26s var(--ease-emphasized),
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

#intro .portfolio-hero__cta:hover,
#intro .portfolio-hero__cta:focus-visible {
  width: 12.75rem;
  background: rgba(18, 138, 134, 0.13);
  color: #ffffff !important;
}

#intro .portfolio-hero__cta--projects:hover,
#intro .portfolio-hero__cta--projects:focus-visible {
  width: 10.45rem;
}

#intro .portfolio-hero__cta:hover {
  box-shadow: inset 0 0 0 1px rgba(58, 222, 205, 0.52),
    0 0.5rem 1.35rem rgba(0, 0, 0, 0.16);
}

#intro .portfolio-hero__cta:focus-visible {
  outline: 2px solid rgba(84, 238, 220, 0.88);
  outline-offset: 0.22rem;
  box-shadow: 0 0.5rem 1.35rem rgba(0, 0, 0, 0.16);
}

#intro .portfolio-hero__cta-icon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  line-height: 1;
  transition: color 0.2s ease, transform 0.26s var(--ease-emphasized),
    background-color 0.2s ease, box-shadow 0.2s ease;
}

#intro .portfolio-hero__cta-icon::before {
  font-size: 1.125rem;
}

#intro .portfolio-hero__cta-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 3rem;
  padding: 0 1rem 0 0.55rem;
  opacity: 0;
  transform: translateX(-0.4rem);
  transition: opacity 0.16s ease 0s, transform 0.22s ease 0s;
}

#intro .portfolio-hero__cta:hover .portfolio-hero__cta-label,
#intro .portfolio-hero__cta:focus-visible .portfolio-hero__cta-label {
  opacity: 1;
  transform: none;
  transition-delay: 0.07s;
}

#intro .portfolio-hero__cta:hover .portfolio-hero__cta-icon,
#intro .portfolio-hero__cta:focus-visible .portfolio-hero__cta-icon {
  color: #54eedc;
  transform: scale(0.94);
}

@media (prefers-reduced-motion: reduce) {
  #intro .portfolio-hero__cta,
  #intro .portfolio-hero__cta-icon,
  #intro .portfolio-hero__cta-label {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #intro,
  #intro.hidden {
    transition: none;
  }
}

#intro + #header {
  margin-top: -8rem;
}

#header {
  height: 10rem;
  padding-bottom: 5rem;
}

#header .logo {
  border-width: 3px !important;
  font-size: 1.6rem;
  padding: 0.8rem 1.25rem;
}

.homepage .homepage-links {
  gap: 0;
  margin: 1.5rem 0 1rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.homepage .homepage-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "desc desc";
  align-content: start;
  align-items: center;
  column-gap: 0.5rem;
  row-gap: 0.45rem;
  min-height: 0;
  padding: clamp(16px, 1.15rem, 24px) clamp(16px, 1.15rem, 22px) clamp(18px, 1.25rem, 26px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform-style: flat;
}

.homepage .homepage-link + .homepage-link {
  border-left: 1px solid var(--color-border);
}

.homepage .homepage-link::after {
  display: none;
}

.homepage .homepage-link:hover,
.homepage .homepage-link:focus-visible {
  background: var(--color-brand-faint);
  transform: none;
}

.homepage-link__icon {
  grid-area: icon;
  display: block;
  color: var(--color-brand-600);
  line-height: 0;
  pointer-events: none;
}

.homepage-link__icon > .icon {
  font-size: clamp(16px, 1.08rem, 20px);
  line-height: 1;
}

.homepage .homepage-link__label {
  grid-area: title;
  align-self: baseline;
  font-size: clamp(15px, 1.02rem, 18px);
  line-height: 1.3;
  letter-spacing: 0;
}

.homepage .homepage-link__label::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.4em;
  color: var(--color-ink-500);
  font-family: var(--font-display);
  font-weight: 600;
  transition: transform var(--motion-standard) var(--ease-standard), color var(--motion-fast) ease;
}

.homepage .homepage-link:hover .homepage-link__label,
.homepage .homepage-link:focus-visible .homepage-link__label {
  color: var(--color-brand-700);
}

.homepage .homepage-link:hover .homepage-link__label::after,
.homepage .homepage-link:focus-visible .homepage-link__label::after {
  color: var(--color-brand-600);
  transform: translateX(4px);
}

.homepage .homepage-link__desc {
  grid-area: desc;
  color: var(--color-ink-500);
  font-size: clamp(12.5px, 0.84rem, 14.5px);
  line-height: 1.55;
}

@media screen and (min-width: 981px) {
  .homepage .homepage-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (min-width: 601px) and (max-width: 980px) {
  .homepage .homepage-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage .homepage-link:nth-child(3) {
    border-left: 0;
  }

  .homepage .homepage-link:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }
}

@media screen and (max-width: 600px) {
  .homepage .homepage-link {
    grid-template-areas:
      "icon title"
      ". desc";
    column-gap: 0.6rem;
    row-gap: 0.2rem;
    padding: 0.85rem 0.15rem 0.9rem;
  }

  .homepage .homepage-link + .homepage-link {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .homepage .homepage-link__desc {
    font-size: max(12.5px, 0.86rem);
    line-height: 1.5;
  }
}

@media screen and (min-width: 981px) {
  #nav {
    height: 3.5rem;
    margin-top: -3.5rem;
    padding-right: 1rem;
    align-items: center;
    overflow: visible;
    background: rgba(3, 7, 8, 0.78);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    line-height: 3.5rem;
  }

  #nav {
    --gutter: max(2rem, (100% - 72rem) / 2);
    width: 100%;
    max-width: none;
    padding-left: var(--gutter);
    padding-right: calc(var(--gutter) + 1rem);
  }

  #nav .nav-brand { padding-left: 2rem; }

  body:not(.page-projects):not(.page-home) #nav { background: rgba(3, 7, 8, 0.9); }

  #header:has(> .site-name) {
    display: none;
  }

  #header:has(> .site-name) + #nav {
    position: sticky;
    top: 0;
    z-index: 30;
    margin-top: 0;
  }

  html:has(#header > .site-name) {
    scroll-padding-top: 3.5rem;
  }

  #nav a {
    border-bottom: 0;
  }

  #nav .nav-brand {
    display: inline-flex;
    position: relative;
    flex: none;
    order: -1;
    align-items: center;
    gap: 0.55rem;
    height: 100%;
    margin-right: 0.75rem;
    padding: 0 1.25rem 0 1.15rem;
    color: #ffffff;
    font: 700 0.98rem/1 var(--font-display);
    letter-spacing: -0.005em;
    white-space: nowrap;
  }

  #nav .nav-brand:hover {
    color: #ffffff !important;
  }

  #nav .nav-brand::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -0.375rem;
    width: 1px;
    height: 1.25rem;
    margin-top: -0.625rem;
    background: rgba(255, 255, 255, 0.14);
  }

  #nav .nav-brand:focus-visible {
    outline: 2px solid rgba(40, 215, 197, 0.9);
    outline-offset: -4px;
  }

  #nav ul.links {
    align-self: stretch;
    letter-spacing: 0.005em;
    text-transform: none;
  }

  #nav ul.links li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.95rem;
    color: rgba(233, 246, 245, 0.66) !important;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    transition: color var(--motion-fast) ease;
  }

  #nav .nav-icon {
    width: 1.05rem;
    height: 1.05rem;
    color: rgba(152, 201, 198, 0.7);
    stroke-width: 1.8;
    transition: color var(--motion-fast) ease;
  }

  #nav ul.links li a:hover {
    background: none;
    color: #ffffff !important;
  }

  #nav ul.links li a:hover .nav-icon {
    color: rgba(40, 215, 197, 0.85);
  }

  #nav ul.links li.active .nav-icon {
    color: rgba(40, 215, 197, 0.95);
  }

  #nav ul.links li a:focus-visible {
    outline: 2px solid rgba(40, 215, 197, 0.9);
    outline-offset: -4px;
  }

  #nav ul.links li.active {
    position: relative;
    background: none;
  }

  #nav ul.links li.active > a {
    position: relative;
    z-index: 1;
  }

  #nav .nav-active-mark {
    display: block;
    position: absolute;
    inset: auto 0.95rem 0 0.95rem;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: #28d7c5;
    box-shadow: 0 -2px 8px rgba(40, 215, 197, 0.35);
    pointer-events: none;
    view-transition-name: nav-active-mark;
  }

  #nav ul.links li.active a,
  #nav ul.links li.active a:hover {
    color: #ffffff !important;
  }

  #nav ul.icons {
    display: flex;
    align-self: stretch;
    align-items: center;
  }

  #nav ul.icons li {
    display: flex;
    align-items: center;
  }

  #nav ul.icons a {
    min-width: 2.75rem;
    min-height: 3rem;
    color: rgba(233, 246, 245, 0.6) !important;
  }

  #nav ul.icons a:hover {
    color: #ffffff !important;
  }
}

.site-mark {
  flex: none;
  color: #e9f6f5;
}

.site-mark path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-mark__links {
  stroke: currentColor;
  stroke-width: 1.6;
  opacity: 0.55;
}

.site-mark__lit {
  stroke: #28d7c5;
  stroke-width: 1.8;
}

.site-mark circle {
  fill: currentColor;
}

.site-mark circle.site-mark__lit-node {
  fill: #28d7c5;
}

.nav-brand {
  display: none;
}

.icon.nav-social::before {
  content: none !important;
  display: none !important;
}

.nav-social__icon {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#header .logo:focus-visible,
#nav ul.icons a:focus-visible {
  outline: 2px solid rgba(40, 215, 197, 0.9);
  outline-offset: 2px;
}

#nav ul.icons a:focus-visible {
  outline-offset: -4px;
}

.nav-active-mark {
  display: none;
}

body:not(.page-home) #wrapper.fade-in::before {
  display: none;
}

@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: var(--motion-standard);
  animation-timing-function: var(--ease-standard);
}

@media screen and (min-width: 981px) {
  #portfolio-title,
  .skills-heading h2,
  #personal-timeline-title,
  #travel-atlas-title {
    width: fit-content;
    view-transition-name: page-title;
  }

  #personal-timeline-title {
    margin-inline: auto;
  }
}

::view-transition-old(page-title),
::view-transition-new(page-title) {
  width: auto;
  height: 100%;
}

::view-transition-old(page-title) {
  animation-name: page-title-out;
}

::view-transition-new(page-title) {
  animation-name: page-title-in;
}

@keyframes page-title-out {
  50%, 100% { opacity: 0; }
}

@keyframes page-title-in {
  0%, 50% { opacity: 0; }
}

#navPanelToggle,
#navPanel .close,
#navPanel .links a,
#navPanel .icons a,
#nav .icons a {
  display: inline-flex;
  min-width: 3rem;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
}

#navPanelToggle {
  display: none;
}

.nav-icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media screen and (max-width: 980px) {
  #intro .portfolio-hero__cta,
  #intro .portfolio-hero__cta:hover,
  #intro .portfolio-hero__cta:focus-visible {
    width: 14.2rem;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  }

  #intro .portfolio-hero__cta:hover,
  #intro .portfolio-hero__cta:focus-visible {
    background: rgba(18, 138, 134, 0.18);
    box-shadow: inset 0 0 0 1px rgba(40, 215, 197, 0.58);
  }

  #intro .portfolio-hero__cta-icon {
    display: none;
  }

  #intro .portfolio-hero__cta-label {
    margin-left: 0;
    padding: 0;
    opacity: 1;
    transform: none;
  }

  #navPanelToggle,
  #navPanelToggle.alt {
    display: inline-flex;
    border-radius: 999px;
    background: #11181a;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0.25rem 0.9rem rgba(0, 0, 0, 0.35);
    color: #e9f6f5;

    font-size: max(var(--text-floor), 0.8rem);
  }

  #navPanelToggle.alt:hover {
    background: #11181a;
  }

  :is(#wrapper, body) > #navPanelToggle {
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  :is(#wrapper, body) > #navPanelToggle::before {
    color: #28d7c5;
  }

  :is(#wrapper, body) > #navPanelToggle.is-scrolled-away {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem);
  }

  :is(#wrapper, body) > #navPanelToggle.is-scrolled-away:focus-visible,
  body.is-navPanel-visible :is(#wrapper, body) > #navPanelToggle.is-scrolled-away {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  body::before {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(3, 14, 30, 0.38);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    content: "";
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
  }

  body.is-navPanel-visible {
    overflow: hidden;
  }

  body.is-navPanel-visible::before {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s ease;
  }

  body.is-navPanel-visible #wrapper {
    opacity: 1;
  }

  #navPanel {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 72svh;
    padding: 0.75rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 0;
    border-radius: 1.4rem 1.4rem 0 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(calc(100% + 2rem));
    transition: transform 0.28s var(--ease-emphasized), box-shadow 0.28s ease, visibility 0.28s;
  }

  body.is-navPanel-visible #navPanel {
    box-shadow: 0 -1rem 2.75rem rgba(3, 14, 30, 0.18);
    transform: translateY(0);
  }

  #navPanel:focus {
    outline: none;
  }

  .nav-panel__handle {
    display: block;
    width: 2.6rem;
    height: 0.25rem;
    margin: 0 auto 0.65rem;
    border-radius: 999px;
    background: #c7cdd1;
  }

  #navPanel .close {
    top: 0;
    right: max(0.55rem, calc((100% - 30rem) / 2 - 0.6rem));
    width: 3rem;
    height: 3rem;
    padding: 0;
    border-radius: 999px;
    color: var(--color-ink-500);
    line-height: 3rem;
    text-align: center;
  }

  #navPanel .close:hover,
  #navPanel .close:focus-visible {
    background: var(--color-brand-faint);
    color: var(--color-ink-900);
  }

  #navPanel > nav {
    max-width: 30rem;
    margin: 2rem auto 0;
  }

  #navPanel .links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.35rem 0 1rem;
  }

  #navPanel .links li,
  #navPanel .links li:first-child {
    margin: 0;
    padding: 0;
    border: 0;
  }

  #navPanel .links li a {
    display: flex;
    width: 100%;
    min-height: 4.75rem;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem 0.25rem 0.65rem;
    border-radius: var(--radius-card);
    background: var(--color-surface-subtle);
    box-shadow: inset 0 0 0 1px var(--color-border-soft);
    color: var(--color-ink-800);
    font-size: max(var(--text-floor), 0.9rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-transform: none;
    transition: background-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
  }

  #navPanel .nav-icon {
    width: 1.6rem;
    height: 1.6rem;
    color: var(--color-brand-600);
    stroke-width: 1.75;
  }

  #navPanel .links li a:hover,
  #navPanel .links li a:focus-visible {
    box-shadow: inset 0 0 0 1px var(--color-brand-200);
    color: var(--color-ink-900);
  }

  #navPanel .links li.active a {
    background: var(--color-brand-wash);
    box-shadow: inset 0 0 0 2px var(--color-brand-600);
    color: var(--color-brand-700);
  }

  #navPanel .icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.8rem 0.55rem 0;
    border-top: 1px solid var(--color-border-soft);
  }

  #navPanel .icons li {
    padding: 0;
  }

  #navPanel .icons a {
    min-width: 3rem;
    min-height: 3rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-brand-600);
  }

  #navPanel .icons a:hover,
  #navPanel .icons a:focus-visible {
    border-color: var(--color-brand-600);
    background: var(--color-brand-faint);
    color: var(--color-brand-700);
  }
}

@media screen and (max-width: 980px) and (prefers-reduced-motion: reduce) {
  :is(#wrapper, body) > #navPanelToggle {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 980px) {
  body::before,
  #navPanel,
  #navPanel .links li a {
    transition-duration: 0.01ms;
  }
}

@media screen and (max-width: 736px) {
  #intro {
    min-height: 82vh;
    padding: 4rem 1.25rem 2rem;
  }

  #intro h1 {
    max-width: 100%;
    margin: 0;
    padding-left: 0.05em;
    font-size: clamp(2.15rem, 10.6vw, 2.8rem);
    letter-spacing: 0.05em;
    line-height: 1.05;
  }

  #intro .portfolio-hero__summary {
    font-size: 1rem;
    line-height: 1.55;
  }

  #intro .portfolio-hero__actions {
    display: grid !important;
    width: min(100%, 19rem);
    gap: 0.6rem;
    margin-top: 1.75rem;
  }

  #intro .portfolio-hero__actions .button {
    width: 100%;
  }

  #intro + #header {
    margin-top: -5rem;
  }

  #header {
    height: 4.75rem;
    min-height: 4.75rem;
    padding: 0 1rem 1rem;
  }

  #header .logo {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    font-size: 1rem;
    padding: 0 1rem;
  }

  .portfolio-overview {
    padding: 1rem !important;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .internship-group__grid {
    grid-template-columns: 1fr;
  }

  .case-study {
    padding: 1.3rem;
  }

  .case-study__highlights {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0;
  }

  .case-study__highlights li {
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--color-border-soft);
  }

  .case-study__highlights li:first-child {
    border-top: 1px solid var(--color-border-soft);
  }

  .case-study--work {
    padding: 1.3rem;
  }

  .case-study--internship .case-study__company,
  .case-study--internship h2 {
    min-height: 0;
  }

  .case-study h2 {
    font-size: 1.35rem;
  }

}

@media screen and (max-width: 980px) {
  #header:has(> .site-name) {
    height: 4.75rem;
    min-height: 4.75rem;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.75rem 1rem 1rem var(--opening-gutter);
  }

  #header .logo.site-name {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border: 0 !important;
    color: #ffffff;
    font: 700 1.05rem/1 var(--font-display);
    letter-spacing: 0;
    text-transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-experience .earlier-work__grid article,
  .page-experience .earlier-project-card__image img,
  .page-experience .earlier-work summary .icon {
    transition: none;
    transform: none;
  }

  .page-experience .earlier-work__grid article:hover,
  .page-experience .earlier-work__grid article:focus-within,
  .page-experience .earlier-project-card:hover .earlier-project-card__image img,
  .page-experience .earlier-project-card:focus-within .earlier-project-card__image img {
    transform: none;
  }
}

.travel-pagination {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 0;
  background: #fff;
  max-width: 64rem;
}

#main > .travel-pagination {
  margin: 3rem auto 0;
  padding-bottom: 2.5rem;
  border-top: 0;
}

@media screen and (min-width: 737px) {
  #main > .travel-pagination { width: calc(100% - 8rem); }
}

@media screen and (min-width: 601px) and (max-width: 736px) {

  #main > .travel-pagination { width: calc(100% - 4rem); padding-inline: 0; }
}

.travel-pagination a {
  position: relative;
  display: flex;
  min-width: 0;
  max-width: 25rem;
  min-height: 3.25rem;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;

  padding: 0.45rem var(--pager-pad, 0);
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  box-shadow: none;
  color: var(--color-ink-900);
}

.travel-pagination a:hover,
.travel-pagination a:focus-visible {
  background: var(--color-brand-faint);
  box-shadow: none;
}

.travel-pagination a > span,
.site-pager__link > span {
  color: var(--color-ink-500);
  font-family: var(--font-display);
  font-size: var(--eyebrow-size);
  font-weight: 700;
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
}

.travel-pagination a > strong,
.site-pager__link > strong {
  color: var(--color-ink-900);
  font-family: var(--font-display);
  font-size: max(var(--text-floor), 0.88rem);
  line-height: 1.35;
}

.travel-pagination__next,
.site-pager__link--next {
  align-items: flex-end;
  text-align: right;
}

.travel-pagination__next {
  margin-left: auto;
}

.site-pager {
  display: grid;
  width: 100%;
  max-width: 64rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 auto !important;

  padding: 1.25rem 2rem 2.5rem !important;

  padding-inline: 0 !important;

  border: 0 !important;
  background: #fff;
}

.site-pager__link {
  position: relative;
  display: flex;
  min-height: 3.75rem;
  flex-direction: column;
  justify-content: center;
  padding: 0.45rem var(--pager-pad, 0);
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  transition: background-color var(--motion-standard) ease;
}

.site-pager__link:hover,
.site-pager__link:focus-visible {
  background: var(--color-brand-faint);
  box-shadow: none;
}

.site-pager__link > strong {
  font-size: max(var(--text-floor), 0.8rem);
}

.travel-pagination a::after,
.site-pager__link::after {
  position: absolute;
  bottom: 0.3rem;
  left: var(--pager-pad, 0);
  width: 1.8rem;
  height: 2px;
  background: var(--color-brand-200);
  content: "";
  opacity: 0.65;
  transform: scaleX(0.45);
  transform-origin: left center;
  transition: background-color var(--motion-standard) ease,
    opacity var(--motion-standard) ease,
    transform var(--motion-standard) var(--ease-standard);
}

.travel-pagination a.travel-pagination__next::after,
.site-pager__link--next::after {
  right: var(--pager-pad, 0);
  left: auto;
  transform-origin: right center;
}

.travel-pagination a > strong,
.site-pager__link > strong {
  transition: transform var(--motion-standard) var(--ease-standard);
}

.travel-pagination a:hover::after,
.travel-pagination a:focus-visible::after,
.site-pager__link:hover::after,
.site-pager__link:focus-visible::after {
  background: var(--color-brand-600);
  opacity: 1;
  transform: scaleX(1);
}

.travel-pagination__previous:hover > strong,
.travel-pagination__previous:focus-visible > strong,
.site-pager__link--previous:hover > strong,
.site-pager__link--previous:focus-visible > strong {
  transform: translateX(-0.2rem);
}

.travel-pagination__next:hover > strong,
.travel-pagination__next:focus-visible > strong,
.site-pager__link--next:hover > strong,
.site-pager__link--next:focus-visible > strong {
  transform: translateX(0.2rem);
}

.site-pager--single .site-pager__link--next {
  grid-column: 2;
}

@media screen and (min-width: 601px) {
  .site-pager__link {
    --pager-pad: 0.75rem;
    margin-inline: -0.75rem;
  }
}

@media screen and (min-width: 737px) {
  .site-pager { width: calc(100% - 8rem); }
}

@media screen and (min-width: 601px) and (max-width: 736px) {
  .site-pager { width: calc(100% - 4rem); }
}

@media screen and (min-width: 737px) {
  body:not(.page-home):not(.page-event) .site-pager {
    width: calc(100% - 4rem);
    max-width: none;
  }
}

@media screen and (min-width: 1281px) {
  .page-home .site-pager {
    width: calc(100% - 16rem);
    max-width: none;
  }
}

@media screen and (min-width: 737px) {
  #main.homepage .homepage-links { margin-bottom: 0; }
  .page-home .site-pager { padding-top: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .travel-pagination a,
  .travel-pagination a::after,
  .travel-pagination a > strong,
  .site-pager__link,
  .site-pager__link::after,
  .site-pager__link > strong {
    transition: none;
  }

  .travel-pagination a:hover > strong,
  .travel-pagination a:focus-visible > strong,
  .site-pager__link:hover > strong,
  .site-pager__link:focus-visible > strong {
    transform: none;
  }
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(18, 138, 134, 0.55);
  outline-offset: 3px;
}

a:hover,
button:hover,
.button:hover {
  color: var(--color-brand-700) !important;
}

button:hover,
.button:hover {
  box-shadow: inset 0 0 0 2px var(--color-brand-600);
}

#nav a:hover {
  color: var(--color-brand-200) !important;
}

ul.icons.alt li a.icon:hover,
#nav ul.icons.alt li a.icon:hover {
  box-shadow: inset 0 0 0 2px var(--color-brand-200);
}

ul.icons li a.icon:hover::before,
#nav ul.icons li a.icon:hover::before {
  color: var(--color-brand-200);
}

#main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100vmax;
  right: -100vmax;
  z-index: -1;
  background: inherit;
  pointer-events: none;
}

html:has(> body:not(.page-home)) { background: #fff; }
html:has(> body.page-projects) { background: #111214; }

#footer {
  position: relative;
  z-index: 0;
  display: block;
  margin: 0 auto;
  padding: 0 0 1rem;
  background: #fff;
  color: var(--color-ink-500);
  cursor: auto;
  font-family: var(--font-display);

  --fb-ink: var(--color-ink-900);
  --fb-soft: #5c6b71;
  --fb-rule: var(--color-border-soft);
  --fb-hover: var(--color-brand-700);
  --fb-lit: #128a86;
  --fb-wash: rgba(18, 138, 134, 0.07);
}

#footer .footer-band__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "brand . social"
    "tabs  tabs tabs";
  align-items: center;
  row-gap: 10px;
  padding: 34px 2rem 30px;
}

#footer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100vmax;
  right: -100vmax;
  z-index: -1;
  background: inherit;
  border-top: 1px solid var(--fb-rule);
  pointer-events: none;
}

#footer .footer-band__inner a {
  border-bottom: 0;
  text-decoration: none;
}

#footer .footer-band__inner a:hover {
  background: var(--fb-wash);
  color: var(--fb-hover) !important;
}

#footer .footer-band__brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: start;
  min-height: 2.75rem;
  margin-left: -0.1rem;
  color: var(--fb-ink);
  font: 700 0.98rem/1 var(--font-display);
  letter-spacing: -0.005em;
  white-space: nowrap;
}

#footer .footer-band__inner .footer-band__brand:hover {
  background: none;
  color: var(--fb-ink) !important;
}

#footer .footer-band__brand .site-mark { color: var(--fb-ink); }
#footer .footer-band__brand .site-mark__lit { stroke: var(--fb-lit); }
#footer .footer-band__brand .site-mark circle.site-mark__lit-node { fill: var(--fb-lit); }

#footer .footer-band__tabs {
  grid-area: tabs;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 0.15rem;

  margin-left: -0.6rem;
}

#footer .footer-band__tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  border-radius: var(--radius-control);
  color: var(--fb-soft);
  font: 600 max(var(--text-floor), 0.84rem)/1 var(--font-display);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

#footer .footer-band__tabs a[aria-current] {
  color: var(--fb-ink);
}

#footer .footer-band__social {
  grid-area: social;
  display: flex;
  justify-self: end;
  gap: 0.15rem;
  margin: 0 calc((1.15rem - 2.75rem) / 2) 0 0;
  padding: 0;
  list-style: none;
}

#footer .footer-band__social li {
  display: flex;
  margin: 0;
  padding: 0;
}

#footer .footer-band__social a {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  color: var(--fb-soft);
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

#footer .footer-band__social a::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  -webkit-mask: var(--fb-icon) center / contain no-repeat;
  mask: var(--fb-icon) center / contain no-repeat;
}

#footer .footer-band__social a[href^="mailto:"] { --fb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7zM3 7l9 6 9-6'/%3E%3C/svg%3E"); }
#footer .footer-band__social a[href*="github"] { --fb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2 4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21'/%3E%3C/svg%3E"); }
#footer .footer-band__social a[href*="linkedin"] { --fb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 11v5M8 8v.01M12 16v-5M16 16v-3a2 2 0 1 0-4 0M3 7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4z'/%3E%3C/svg%3E"); }

@media screen and (min-width: 737px) {
  #footer .footer-band__brand,
  #footer .footer-band__tabs a { min-height: 44px; }
  #footer .footer-band__social a { width: 44px; height: 44px; }
  #footer .footer-band__social { margin-right: calc((1.15rem - 44px) / 2); }
}

@media screen and (min-width: 981px) {
  #footer .footer-band__tabs { display: none; }

  #footer .footer-band__inner {
    grid-template-areas: "brand . social";
    column-gap: 1.5rem;
  }
}

@media screen and (max-width: 736px) {
  #footer .footer-band__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand social"
      "tabs  tabs";
    row-gap: 0.35rem;
    padding: 1.4rem 2rem calc(1.6rem + env(safe-area-inset-bottom, 0px));
  }

  #footer .footer-band__tabs {
    justify-self: stretch;
    justify-content: space-between;
    gap: 0;
    margin: 0 -0.5rem;
  }

  #footer .footer-band__tabs a {
    padding: 0 0.5rem;
    font-size: max(var(--text-floor), clamp(0.8rem, 3.5vw, 0.9rem));
  }
}

@media screen and (max-width: 480px) {
  #footer { padding-bottom: 0; }
}

@media screen and (max-width: 374px) {
  #footer .footer-band__tabs { margin: 0 -0.36rem; }
  #footer .footer-band__tabs a { padding: 0 0.36rem; letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #footer .footer-band__tabs a,
  #footer .footer-band__social a { transition: none; }
}

@media screen and (max-width: 980px) {
  #intro .portfolio-hero__cta,
  #intro .portfolio-hero__cta:hover,
  #intro .portfolio-hero__cta:focus-visible {
    min-height: 3rem;
  }

  #intro .portfolio-hero__cta,
  #intro .portfolio-hero__cta:hover,
  #intro .portfolio-hero__cta:focus-visible,
  #main .travel-map.is-fullscreen .travel-map__close,
  #main .travel-map__zoom-btn,
  .travel-grid .travel-card .actions.special .button {
    height: 3rem;
  }

  #main .travel-map.is-fullscreen .travel-map__close,
  #main .travel-map__zoom-btn {
    width: 3rem;
  }

  .travel-grid .travel-card .actions.special .button {
    line-height: 3rem;
  }
}

@media screen and (max-width: 600px) {
  #intro {
    min-height: 72vh;
    padding: 2rem 1rem;
  }

  #nav .links a,
  #nav .icons a,
  .button,
  button {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #main > .travel-pagination {
    margin-top: 2rem;
    padding: 0.8rem 1rem 2.5rem;
  }

  .site-pager {
    gap: 0.35rem;
    padding: 0.8rem 1rem 2.5rem !important;
  }

  .travel-pagination a {
    --pager-pad: 1rem;
    flex: 0 1 auto;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .travel-pagination__next { flex: 1 1 auto; }

  .travel-pagination a:hover,
  .travel-pagination a:focus-visible {
    border-color: transparent;
    background: var(--color-brand-faint);
    box-shadow: none;
  }

  .site-pager__link {
    --pager-pad: 1rem;
    min-height: 3rem;
    padding-block: 0.4rem;
  }

  .site-pager__link > strong {
    overflow-wrap: anywhere;
  }

  iframe,
  video,
  canvas {
    max-width: 100% !important;
  }
}

@media screen and (max-width: 480px) {
  body:not(.page-home) .site-pager { padding-inline: 1.15rem !important; }
  body:not(.page-home) .site-pager__link { margin-inline: -1rem; }
  body:not(.page-home) #footer .footer-band__inner { padding-inline: 1.15rem; }
}

.page-skills .education-details,
.page-skills .education-details p {
  text-align: left !important;
}

body.page-event #nav {
  margin-top: 0 !important;
}

.page-event #main > article > header.major:has(h2) .date {
  margin-bottom: 1.5rem;
}

.page-event #main > article > header.major h2 {
  margin: 0 0 0.6rem;
  color: var(--color-ink-900, #20343d);
  font-family: "Raleway", sans-serif;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-transform: none;
}

.page-event #main > article > header.major h2 + p {
  margin-bottom: 2rem;
  color: #66757b;
  font-style: normal;
  line-height: 1.65;
}

body.page-home #intro {
  width: 100%;
  min-height: 100vh;
  min-height: 100lvh;
  margin: 0;
}

@media screen and (max-width: 736px) {
  body.page-home #intro {
    padding-bottom: calc(100lvh - 100svh + 4rem);
  }
}

body.page-home.is-preload #intro {
  opacity: 1;
  transform: none;
}

body.page-home #intro {
  z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes a-name {
    from { opacity: 0.25; filter: blur(0.14em); }
    to { opacity: 1; filter: blur(0); }
  }
  @keyframes a-rise {
    from { opacity: 0; transform: translateY(0.45rem); }
    to { opacity: 1; transform: none; }
  }
  @keyframes a-hold {
    from, to { translate: 0 -300vh; }
  }

  html:not(.hero-seen) body.page-home #intro h1 {
    animation: a-name 560ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards !important;
  }
  html:not(.hero-seen) body.page-home #intro .portfolio-hero__summary {
    animation: a-hold 240ms step-end !important;
  }
  html:not(.hero-seen) body.page-home #intro .portfolio-hero__scramble-row {
    animation: a-rise 420ms cubic-bezier(0.2, 0.7, 0.2, 1) 300ms backwards !important;
  }
  html:not(.hero-seen) body.page-home #intro .portfolio-hero__scramble-support {
    animation: a-rise 420ms cubic-bezier(0.2, 0.7, 0.2, 1) 420ms backwards !important;
  }
  html:not(.hero-seen) body.page-home #intro .portfolio-hero__actions > li {
    animation: a-rise 420ms cubic-bezier(0.2, 0.7, 0.2, 1) 540ms backwards !important;
  }
  html:not(.hero-seen) body.page-home #intro .portfolio-hero__actions > li + li {
    animation-delay: 660ms !important;
  }
}

.page-travel-journal .travel-journal__hero-image,
.page-travel-journal .guangzhou-journal__hero-image,
.page-travel-journal .image.main.journal-banner {
  background: linear-gradient(135deg, #dce7e6, #edf2f1);
}

body.page-home #nav {
  margin-top: 0;
}

@media screen and (min-width: 981px) {
  body.page-home #intro {
    min-height: calc(100vh - 3.5rem);
  }

  body.page-home #nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #030708;
  }

  body.page-home .intro-swipe__photo img {
    height: min(62vh, 45.33vw, calc(100vh - 19rem));
  }
}

@media all and (max-width: 600px) {
  .homepage .homepage-links {
    margin-top: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journal-gallery-controls .journal-gallery-arrow {
    transition: none;
  }
}

#intro .portfolio-hero__summary {
  display: grid;

  width: min(48rem, calc(100vw - 3rem));
  grid-template-columns: 1fr;
  gap: 0;
  margin: 1.5rem 0 0;
  font-style: normal;
  text-align: center;
  text-transform: none;
}

#intro .portfolio-hero__scramble-row {
  position: relative;
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  font-weight: 300;
  letter-spacing: -0.005em;
  line-height: 1.45;
  white-space: pre-line;
}

.portfolio-hero__scramble-support {
  display: block;
  margin-top: 1.15rem;
  color: rgba(40, 215, 197, 0.82);
  font-family: var(--font-display);
  font-size: max(var(--text-floor), 0.74rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.scramble-reveal__visual {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: inherit;
}

[data-scramble-list].is-enhanced [data-scramble-source] {
  color: transparent;
}

@media screen and (max-width: 736px) {
  #intro .portfolio-hero__summary {
    width: calc(100vw - 2.5rem);
    margin-top: 1rem;
  }

  #intro .portfolio-hero__scramble-row {
    font-size: clamp(1.12rem, 5.2vw, 1.4rem);
    line-height: 1.5;
  }

  .portfolio-hero__scramble-support {
    margin-top: 0.95rem;
    font-size: max(var(--text-floor), 0.7rem);
    letter-spacing: 0.12em;
  }
}

body { --opening-gutter: 2rem; }
html .page-experience #main > .portfolio-headline { display:block; padding:2rem var(--opening-gutter) 0; }
html .page-experience .portfolio-overview { padding:1.5rem var(--opening-gutter) 2rem !important; border-top:0 !important; }
html .page-skills #main > .post,
html .personal-timeline-page > .personal-timeline { padding:2rem var(--opening-gutter) 3rem !important; }
html #main > .travel-atlas { margin:0; padding:2rem var(--opening-gutter); border:0; border-radius:0; box-shadow:none; background:#fff; }
html .page-skills #main > .post header.major.skills-heading,
html .personal-timeline__intro { max-width:none; margin:0 0 1.5rem !important; padding:0; text-align:left; }
html .page-experience .portfolio-headline h1,
html .page-skills #main > .post header.major.skills-heading h2,
html .personal-timeline__intro h1,
html .travel-atlas__header h1 { max-width:none; margin:0 !important; color:var(--color-ink-900); font:700 1.8rem/1.3 var(--font-body) !important; letter-spacing:-.025em; text-transform:none; text-align:left; }
html .page-skills .skills-heading::before,
html .travel-atlas__eyebrow,
html .page-opening-eyebrow { display:block; margin:0 0 .5rem; color:var(--color-brand-700); font:700 var(--eyebrow-size)/1.3 var(--font-display); letter-spacing:var(--eyebrow-tracking); text-transform:uppercase; text-align:left; }
html .page-skills .skills-heading p,
html .personal-timeline__intro p,
html .travel-atlas__header > div > p { margin:.65rem 0 0; max-width:55rem; color:var(--color-ink-500); font:300 max(var(--text-floor), .9rem)/1.65 var(--font-body); text-align:left; }

html .page-experience .portfolio-headline h1,
html .page-skills #main > .post header.major.skills-heading h2,
html .personal-timeline__intro h1,
html .travel-atlas__header h1 { text-wrap:balance; }
html .page-projects .page-opening-eyebrow { color:#5fe0d2 !important; }

html .page-projects a.app-card__repo:hover { color:#fff !important; }
html .page-projects :is(a, button):focus-visible { outline-color:#5fe0d2; }
@media screen and (min-width: 981px) {
  html .page-experience:not(.page-projects) #main > .portfolio-headline,
  html .page-skills #main > .post,
  html .personal-timeline-page > .personal-timeline,
  html #main > .travel-atlas { padding-top:2.75rem !important; }
  html .page-experience #main > .portfolio-headline { padding-bottom:0 !important; margin-bottom:0 !important; }
  html .page-experience:not(.page-projects) .portfolio-overview { padding-top:2.25rem !important; }
  html .page-skills #main > .post header.major.skills-heading,
  html .personal-timeline__intro,
  html #main > .travel-atlas .travel-atlas__header { margin-bottom:2.25rem !important; }
  html .travel-atlas__header > div:first-child { margin-bottom:1.75rem !important; }

  html .page-projects #main > .portfolio-headline { grid-area:1/1; padding:2rem 0 0 2rem; }
  html .page-skills .skills-heading::before,
  html .travel-atlas__eyebrow,
  html .page-opening-eyebrow { margin-bottom:.7rem !important; }
  html .page-experience .portfolio-headline h1,
  html .page-skills #main > .post header.major.skills-heading h2,
  html .personal-timeline__intro h1,
  html .travel-atlas__header h1 { font-size:clamp(2.4rem, 3vw, 2.9rem) !important; line-height:1.1 !important; letter-spacing:-.022em; }
  html .page-skills .skills-heading p,
  html .personal-timeline__intro p,
  html .travel-atlas__header > div > p { margin-top:.75rem !important; max-width:44rem; font-size:1.1rem !important; line-height:1.6 !important; color:#56656b; text-wrap:pretty; }
  html .page-projects .projects-intro { margin-top:.75rem !important; font-size:1.02rem !important; line-height:1.65 !important; color:rgba(233, 246, 245, .68) !important; text-wrap:pretty; }
}

@media(max-width:736px) {
 body { --opening-gutter:1.15rem; }
 html .page-experience #main > .portfolio-headline,
 html .page-skills #main > .post,
 html .personal-timeline-page > .personal-timeline,
 html #main > .travel-atlas { padding-top:1.5rem !important; }
}
@media(max-width:980px) {
 html .page-experience .portfolio-headline h1,
 html .page-skills #main > .post header.major.skills-heading h2,
 html .personal-timeline__intro h1,
 html .travel-atlas__header h1 { font-size:1.85rem !important; line-height:1.2 !important; }
}

html .page-skills #main > .post { border-top:0; }

#main > .portfolio-headline {
  margin: 0;
  padding: 1.75rem 2rem 0;
}

.portfolio-headline h1 {
  margin: 0;
  color: var(--color-ink-900);
  font-size: 1.45rem;
  line-height: 1.2;
  text-align: left;
}

.portfolio-overview {
  padding: 2rem !important;
}

@media screen and (max-width: 736px) {
  .page-experience .portfolio-overview {
    padding: 1.15rem !important;
  }
}
