@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #727a74;
  --paper: #f5f3ef;
  --white: #fffefa;
  --accent: #1e5a8e;
  --accent-light: #e8f0f7;
  --line: #dcded7;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --display: "Manrope", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  font-family: 'Helvetica Neue', system-ui;
}

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

.site-header {
  height: 84px;
  padding: 0 7.1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(245 243 239 / 92%);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(16px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: -0.06em;
}

.wordmark-mark {
  min-width: 29px;
  min-height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
  letter-spacing: -0.08em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 3rem);
  font-size: 0.81rem;
  font-weight: 500;
}

.site-header nav a {
  transition: color 160ms ease;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.site-header nav .nav-contact {
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  transition: color 600ms ease;
}

.site-header nav .nav-contact:hover {
  background-color: var(--ink);
  color: var(--white);
}

.site-header .boxed-links {
  display: flex;
  gap: 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  align-items: center;
  padding: 82px 12.5% 110px;
  background: var(--paper);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 930px;
}

.eyebrow,
.section-label,
.person-role,
.project-meta,
.person-aside {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 30px;
  color: #555e57;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(30 90 142 / 15%);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(3.3rem, 6.5vw, 6.4rem);
  line-height: 0.99;
  letter-spacing: -0.078em;
  font-weight: 600;
}

.hero h1 span,
.intro-content h2 span {
  color: var(--accent);
}

.hero-intro {
  margin-bottom: 31px;
  color: #626a64;
  font-size: 1rem;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--ink);
  font-size: 0.83rem;
  font-weight: 700;
}

.text-link span {
  font-size: 1.05rem;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.note-one {
  top: 23%;
  left: 0;
  transform: rotate(-8deg);
}

.note-two {
  top: 22%;
  right: 0;
  transform: rotate(7deg);
}

.note-three {
  right: 12%;
  bottom: 13%;
  transform: rotate(-5deg);
}

.art-spark {
  position: absolute;
  color: var(--accent-light);
  font-size: 1.4rem;
}

.spark-one {
  top: 7%;
  right: 22%;
}

.spark-two {
  bottom: 14%;
  left: 13%;
  font-size: 1rem;
}

.scroll-cue {
  position: absolute;
  bottom: 29px;
  left: 7.1%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scroll-cue span {
  width: 1px;
  height: 32px;
  background: #a4aaa2;
}

.section-wrap {
  padding-right: 12.5%;
  padding-left: 12.5%;
}

.intro-section {
  padding-top: 125px;
  padding-bottom: 137px;
  background: var(--white);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #6a736b;
}

.section-label>span {
  color: var(--accent);
  font-weight: 700;
}

.intro-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 10%;
  margin-top: 55px;
}

.intro-content h2,
.section-heading h2,
.contact-inner h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.3vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.065em;
  font-weight: 600;
}

.intro-details>p,
.person-details>p:not(.person-role):not(.person-aside),
.project-card>p {
  color: #667069;
  font-size: 0.9rem;
  line-height: 1.85;
}

.aboutme-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.aboutme-facts div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aboutme-facts strong {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: -0.07em;
}

.aboutme-facts strong span {
  color: var(--accent);
}

.aboutme-facts div>span {
  color: var(--muted);
  font-size: 0.69rem;
}

.people-section {
  padding-top: 126px;
  padding-bottom: 138px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section-heading h2 {
  margin-top: 26px;
}

.education {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 24px;
}

.education img {
  width: auto;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
}

.career-section {
  padding-top: 126px;
  padding-bottom: 138px;
}

.career-timeline {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: 55px 0 0;
  padding: 0;
  list-style: none;
}

career-entry {
  display: block;
}

.career-item {
  position: relative;
  padding-left: 36px;
  padding-bottom: 24px;
}

.career-item:last-child {
  padding-bottom: 0;
}

.career-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: var(--line);
}

.career-item::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
}

.career-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
}

.career-dates {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.career-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.career-logo {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  /* border: 1px solid var(--line); */
  border-radius: 12px;
  background: var(--paper);
  margin-right: 8px;
}

.career-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: white;
}

.career-logo-fallback {
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
}

.career-company {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.career-role {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.career-description {
  margin: 0;
  color: #667069;
  font-size: 0.9rem;
  line-height: 1.85;
}

.career-highlights {
  color: #667069;
  font-size: 0.9rem;
  line-height: 1.85;
}

.career-highlights section + section {
  margin-top: 18px;
}

.career-highlights h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
}

.career-highlights p {
  margin: 0;
}

.career-toggle {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.career-toggle[hidden] {
  display: none;
}

.career-toggle:hover {
  text-decoration: underline;
}

.career-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.career-toggle-icon {
  transition: transform 0.2s ease;
}

.career-toggle[aria-expanded="true"] .career-toggle-icon {
  transform: rotate(180deg);
}

.person-card-container {
  display: flex;
  justify-content: center;
}
  
.person-card {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  max-width: 700px;
  gap: 25px;
  background: var(--white);
  border: 2px solid var(--ink);
}

.person-photo-container {
  overflow: hidden;
  width: 100%;
}

.person-photo {
  width: 100%;
  height: auto;
}

.person-details {
  padding: 27px;
}

.person-role {
  margin: 2px 0 10px;
  color: #768077;
  font-size: 0.57rem;
}

.person-details h3,
.project-card h3 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -0.05em;
}

.person-details>p:not(.person-role):not(.person-aside) {
  margin-bottom: 16px;
  font-size: 0.78rem;
  line-height: 1.75;
}

.person-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.person-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.person-links img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.person-aside {
  margin: 17px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #7b837c;
  font-size: 0.52rem;
  line-height: 1.65;
}

.work-section {
  padding-top: 123px;
  background: var(--white);
}

.work-heading>p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 62px 26px;
  margin-top: 57px;
  padding-bottom: 57px;
}

.project-card {
  display: block;
  max-width: 600px;
}

.project-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.6;
  background: var(--accent-light);
}

.project-demo {
  overflow: hidden;
  aspect-ratio: 1.6;
  background: var(--accent-light);
}

.project-demo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-orange .project-image {
  background: #f4e6df;
}

.project-coral .project-image {
  background: #f3e8e0;
}

.project-sand .project-image {
  background: #ecece7;
}

.project-image>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.project-image:hover>img {
  transform: scale(1.035);
}

.project-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.project-image:hover .project-arrow {
  transform: translate(2px, -2px);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 19px 0 14px;
  color: #7e877f;
  font-size: 0.55rem;
}

.project-card h3 {
  margin-bottom: 7px;
  font-size: 1.75rem;
}

.project-card>p {
  max-width: 440px;
  min-height: 3.2em;
  margin-bottom: 13px;
  font-size: 0.8rem;
  line-height: 1.7;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.store-links a {
  font-size: 0.7rem;
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
}

.contact-section {
  padding-top: 102px;
  padding-bottom: 95px;
  color: var(--white);
  background: #0a0e12;
}

.contact-inner>.section-label {
  color: #b2beb4;
}

.contact-inner>.section-label>span {
  color: var(--accent);
}

.contact-inner h2 {
  margin-top: 41px;
  font-size: clamp(3.3rem, 7vw, 6.7rem);
  letter-spacing: -0.075em;
}

.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid rgb(255 255 255 / 19%);
}

.contact-bottom p {
  margin: 0;
  color: #b2beb4;
  font-size: 0.86rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.contact-email span {
  color: var(--accent);
}

.site-footer {
  min-height: 88px;
  padding: 20px 7.1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f0eee8;
  font-size: 0.69rem;
}

.site-footer>span {
  color: var(--muted);
}

.site-footer>div {
  display: flex;
  gap: 20px;
  color: #626a64;
}

.footer-wordmark {
  font-size: 1rem;
}

.footer-wordmark .wordmark-mark {
  width: 25px;
  height: 25px;
  font-size: 0.85rem;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1050px) {
  .hero {
    padding-right: 8%;
    padding-left: 8%;
  }

  .section-wrap {
    padding-right: 8%;
    padding-left: 8%;
  }

  .person-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    scroll-padding-top: 5rem;
  }

  .site-header {
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
  }

  .site-header nav {
    gap: clamp(6px, 2vw, 12px);
    font-size: 0.65rem;
  }

  .site-header nav .nav-contact {
    padding: 7px 8px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 82px 7% 100px;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 13vw, 5.4rem);
  }

  .hero-intro {
    max-width: 370px;
    font-size: 0.9rem;
  }

  .hero-art {
    width: min(78vw, 340px);
    min-width: 0;
    justify-self: center;
    margin: 0;
  }

  .art-core span {
    font-size: 5rem;
  }

  .scroll-cue {
    bottom: 20px;
    left: 7%;
  }

  .section-wrap {
    padding-right: 7%;
    padding-left: 7%;
  }

  .intro-section,
  .people-section,
  .career-section,
  .work-section {
    padding-top: 82px;
    padding-bottom: 88px;
  }

  .career-timeline {
    margin-top: 36px;
  }

  .career-item {
    padding-left: 26px;
  }

  .career-card {
    padding: 20px;
  }

  .career-logo {
    width: 52px;
    height: 52px;
  }

  .intro-content {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 37px;
  }

  .intro-content h2,
  .section-heading h2 {
    font-size: clamp(2.5rem, 9vw, 3.6rem);
  }

  .aboutme-facts {
    gap: 8px;
  }

  .aboutme-facts strong {
    font-size: 1.55rem;
  }

  .aboutme-facts div>span {
    font-size: 0.6rem;
    line-height: 1.5;
  }

  .section-heading {
    gap: 18px;
  }

  .section-heading h2 {
    margin-top: 22px;
  }

  .project-grid {
    gap: 20px;
    margin-top: 36px;
  }

  .person-details h3 {
    font-size: 1.25rem;
  }

  .person-details>p:not(.person-role):not(.person-aside) {
    font-size: 0.74rem;
  }

  .person-links {
    gap: 10px;
  }

  .project-grid {
    gap: 43px;
  }

  .project-card>p {
    min-height: 0;
  }

  .contact-section {
    padding-top: 80px;
    padding-bottom: 70px;
  }

  .contact-inner h2 {
    margin-top: 34px;
    font-size: clamp(3.3rem, 13vw, 5.2rem);
  }

  .contact-bottom {
    align-items: start;
    flex-direction: column;
    gap: 17px;
    margin-top: 33px;
  }

  .site-footer {
    flex-wrap: wrap;
    padding: 22px 7%;
  }

  .site-footer>span {
    order: 3;
    flex-basis: 100%;
  }

  .site-footer>div {
    gap: 13px;
    font-size: 0.64rem;
  }
}

@media (max-width: 390px) {
  .site-header nav {
    gap: 5px;
    font-size: 0.58rem;
  }

  .site-header nav .nav-contact {
    padding: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Motion layer (pure CSS)
   - Load-in and hover animations work everywhere.
   - Scroll-driven animations only apply where animation-timeline is supported;
     other browsers simply show the static page.
   - Everything is skipped when the user prefers reduced motion.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  main {
    overflow-x: clip;
  }

  /* ---------- Keyframes ---------- */

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(28px);
    }
  }

  @keyframes header-drop {
    from {
      opacity: 0;
      transform: translateY(-100%);
    }
  }

  @keyframes pulse-ring {
    0% {
      box-shadow: 0 0 0 0 rgb(30 90 142 / 45%);
    }

    100% {
      box-shadow: 0 0 0 10px rgb(30 90 142 / 0%);
    }
  }

  @keyframes drip {
    0% {
      transform: scaleY(0);
      transform-origin: top;
    }

    50% {
      transform: scaleY(1);
      transform-origin: top;
    }

    50.01% {
      transform-origin: bottom;
    }

    100% {
      transform: scaleY(0);
      transform-origin: bottom;
    }
  }

  @keyframes shimmer {
    to {
      background-position: -200% 0;
    }
  }

  @keyframes float-orb {

    0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
      transform: translate3d(-30px, 40px, 0) scale(1.08);
    }
  }

  @keyframes twinkle {

    0%,
    100% {
      opacity: 0.4;
      transform: scale(0.8) rotate(0deg);
    }

    50% {
      opacity: 1;
      transform: scale(1.2) rotate(90deg);
    }
  }

  /* ---------- Page load ---------- */

  .hero-copy>* {
    animation: rise 800ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }

  .hero-copy> :nth-child(2) {
    animation-delay: 100ms;
  }

  .hero-copy> :nth-child(3) {
    animation-delay: 200ms;
  }

  .hero-copy> :nth-child(4) {
    animation-delay: 300ms;
  }

  .hero-copy> :nth-child(5) {
    animation-delay: 400ms;
  }

  .hero-copy> :nth-child(6) {
    animation-delay: 500ms;
  }

  .site-header {
    animation: header-drop 600ms ease both;
  }

  .status-dot {
    animation: pulse-ring 1.8s ease-out infinite;
  }

  .hero h1 span {
    background: linear-gradient(90deg, var(--accent) 0%, #1a4a75 25%, var(--accent) 50%, var(--accent) 100%);
    background-size: 200% 100%;
    padding: 0 0.12em 0.1em 0;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 6s linear infinite;
  }

  .hero::before {
    content: "";
    position: absolute;
    top: 8%;
    right: 4%;
    width: min(46vw, 520px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgb(30 90 142 / 15%), rgb(30 90 142 / 0%) 70%);
    pointer-events: none;
    animation: float-orb 14s ease-in-out infinite;
  }

  .scroll-cue span {
    overflow: hidden;
    position: relative;
    background: #d4d8d1;
  }

  .scroll-cue span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    animation: drip 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }

  /* ---------- Hover / interaction ---------- */

  .site-header nav a:not(.nav-contact) {
    background: linear-gradient(var(--ink), var(--ink)) left / 0 100% no-repeat;
    padding-bottom: 4px;
    transition: color 250ms ease, background-size 300ms cubic-bezier(0.2, 0.7, 0.3, 1);
  }

  .site-header nav a:not(.nav-contact):hover {
    background-size: 100% 1px;
  }

  .site-header nav .nav-contact {
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    background-image: linear-gradient(90deg, var(--ink), var(--ink));
    background-position: left;
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 600ms cubic-bezier(0.2, 0.7, 0.3, 1), color 600ms cubic-bezier(0.2, 0.7, 0.3, 1);
  }

  .site-header nav .nav-contact:hover {
    background-color: transparent;
    background-size: 100% 100%;
    color: var(--white);
  }

  .wordmark-mark {
    transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .education img {
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease;
  }

  .career-card {
    transition: transform 300ms cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 300ms ease, border-color 300ms ease;
  }

  .career-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 14px 30px rgb(24 32 29 / 8%);
  }

  .career-item::after {
    transition: background-color 300ms ease;
  }

  .career-item:hover::after {
    background-color: var(--accent);
  }

  .project-demo {
    transition: transform 350ms cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 350ms ease;
  }

  .project-card:hover .project-demo {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgb(24 32 29 / 14%);
  }

  .store-links a {
    background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat;
    transition: background-size 300ms ease, border-color 300ms ease;
  }

  .store-links a:hover {
    background-size: 100% 1px;
    border-color: transparent;
  }

  .person-card {
    transition: transform 400ms cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 400ms ease;
  }

  .person-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgb(24 32 29 / 10%);
  }

  .person-links a {
    transition: transform 200ms ease;
  }

  .person-links a:hover {
    transform: translateY(-2px);
  }

  .contact-email span {
    display: inline-block;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .contact-email {
    transition: color 200ms ease;
  }

  .contact-email:hover {
    color: var(--accent);
  }

  .contact-email:hover span {
    transform: translate(4px, -4px) rotate(10deg);
  }

  /* ---------- Scroll-driven ---------- */

  @supports (animation-timeline: view()) {
    @keyframes progress {
      from {
        transform: scaleX(0);
      }

      to {
        transform: scaleX(1);
      }
    }

    @keyframes hero-exit {
      to {
        opacity: 0;
        transform: translateY(80px) scale(0.97);
      }
    }

    @keyframes fade-out {
      to {
        opacity: 0;
      }
    }

    @keyframes orb-parallax {
      to {
        translate: 0 200px;
        opacity: 0;
      }
    }

    @keyframes reveal-up {
      from {
        opacity: 0;
        transform: translateY(60px);
      }
    }

    @keyframes reveal-left {
      from {
        opacity: 0;
        transform: translateX(-48px);
      }
    }

    @keyframes reveal-right {
      from {
        opacity: 0;
        transform: translateX(48px);
      }
    }

    @keyframes reveal-scale {
      from {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
      }
    }

    @keyframes pop {
      from {
        transform: scale(0);
      }
    }

    @keyframes draw-line {
      from {
        transform: scaleY(0);
      }
    }

    @keyframes wipe {
      from {
        clip-path: inset(0 100% 0 0);
      }
    }

    @keyframes unclip {
      from {
        clip-path: inset(12% 12% 12% 12% round 14px);
        opacity: 0.4;
      }
    }

    @keyframes photo-parallax {
      from {
        transform: scale(1.18) translateY(-6%);
      }

      to {
        transform: scale(1.18) translateY(6%);
      }
    }

    @keyframes slow-spin {
      to {
        transform: rotate(180deg);
      }
    }

    @keyframes tint-in {
      from {
        letter-spacing: -0.12em;
        opacity: 0;
      }
    }

    /* Reading progress bar under the header */
    .site-header::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--accent), #1a4a75);
      transform-origin: left;
      animation: progress linear both;
      animation-timeline: scroll(root block);
    }

    /* Hero */
    .hero-copy {
      animation: hero-exit linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 70%;
    }

    .hero::before {
      animation: float-orb 14s ease-in-out infinite, orb-parallax linear both;
      animation-timeline: auto, view();
      animation-range: normal, exit 0% exit 100%;
    }

    .scroll-cue {
      animation: fade-out linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 18vh;
    }

    /* Section labels and headings */
    .section-label {
      animation: reveal-left linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }

    .section-label>span {
      display: inline-block;
      animation: pop linear both;
      animation-timeline: view();
      animation-range: entry 20% entry 100%;
    }

    .intro-content h2,
    .section-heading h2,
    .contact-inner h2 {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    .contact-inner h2 {
      animation-name: tint-in, reveal-up;
      animation-range: entry 0% entry 100%, entry 0% entry 70%;
    }

    .work-heading>p {
      animation: reveal-right linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 90%;
    }

    /* About */
    .intro-details>p {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }

    .aboutme-facts {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }

    .aboutme-facts div {
      animation: reveal-scale linear both;
      animation-timeline: view();
    }

    .aboutme-facts div:nth-child(1) {
      animation-range: entry 0% entry 70%;
    }

    .aboutme-facts div:nth-child(2) {
      animation-range: entry 15% entry 85%;
    }

    .aboutme-facts div:nth-child(3) {
      animation-range: entry 30% entry 100%;
    }

    .person-card-container {
      animation: reveal-scale linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    .person-photo-container {
      animation: unclip linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }

    .person-photo {
      animation: photo-parallax linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    .person-details>* {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 100%;
    }

    /* Career timeline */
    .career-item:nth-child(odd) {
      animation: reveal-left linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }

    .career-item:nth-child(even) {
      animation: reveal-right linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }

    .career-item::before {
      transform-origin: top;
      animation: draw-line linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 55%;
    }

    .career-item::after {
      animation: pop linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }

    .career-logo {
      animation: reveal-scale linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 60%;
    }

    /* Projects */
    .project-card {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 50%;
    }

    .project-card:nth-child(odd) {
      animation-name: reveal-left;
    }

    .project-card:nth-child(even) {
      animation-name: reveal-right;
    }

    .project-demo {
      animation: wipe linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 70%;
    }

    .project-meta,
    .project-card h3,
    .project-card>p,
    .store-links {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 30% entry 100%;
    }

    /* Contact */
    .contact-bottom {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 20% entry 100%;
    }

    .contact-email {
      animation: reveal-scale linear both;
      animation-timeline: view();
      animation-range: entry 40% entry 100%;
    }

    .site-footer {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
