@font-face {
  font-family: "Figtree";
  src: url("./fonts/Figtree-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("./fonts/Figtree-LightItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("./fonts/Figtree-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("./fonts/Figtree-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("./fonts/Figtree-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("./fonts/Figtree-MediumItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("./fonts/Figtree-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("./fonts/Figtree-SemiBoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("./fonts/Figtree-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("./fonts/Figtree-BoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --weather-accent: #dc5294;
  font-family: "Figtree", Arial, sans-serif;
  color: #24262a;
  background: #fcfbf9;
}
* { box-sizing: border-box; }
body { --header-height: 60px; margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { border-radius: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid #8a2256; outline-offset: 5px; }
header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem clamp(1rem, 2vw, 2rem); gap: 1rem; }
header {
  min-height: var(--header-height);
  line-height: 1.25;
  position: sticky;
  top: 0;
  z-index: 3;
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(252 251 249 / 28%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
}
header:not(.is-scrolled)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgb(0 0 0 / 8%);
  pointer-events: none;
}
header a, footer a { text-decoration: none; }
header a, footer a, .case-nav a { font-weight: 300; }
footer a { color: inherit; }
@media (hover: hover) and (width > 720px) {
  footer a:hover { opacity: .8; }
}
nav { display: flex; gap: clamp(1rem, 3vw, 3rem); }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: clamp(18rem, 38vw, 36rem); padding: 3rem clamp(1rem, 2vw, 2rem); }
.hero::before { content: ""; position: absolute; z-index: -1; top: 8%; right: -4%; width: 61%; height: 92%; background: radial-gradient(ellipse at 61% 31%, #d4548f 0%, #e78eb1 22%, #f3b9ae 43%, #fae1be 58%, transparent 74%); filter: blur(clamp(1rem, 4vw, 4rem)); }
.hero div { max-width: min(54vw, 49rem); }
h1 { font-weight: 400; font-size: clamp(1.125rem, 1.65vw, 1.65rem); margin: 0 0 .75rem; }
p { font-size: clamp(1rem, 1.55vw, 1.45rem); line-height: 1.4; margin: 0 0 1rem; }
main :is(p, dd) { font-weight: 300; }
main :is(p, dd) :is(strong, b) { font-weight: 700; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 1.2vw, 1.25rem); padding: 0 clamp(1rem, 2vw, 2rem) clamp(2rem, 4vw, 4rem); }
.project {
  display: block;
  min-width: 0;
  position: relative;
  border-radius: 0;
}

.project-image {
  display: block;
  overflow: hidden;
}

.project img {
  display: block;
  width: 100%;
  height: auto;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-image img {
    transition: transform 260ms ease-out;
  }

  .project:hover .project-image img {
    transform: scale(1.035);
  }
}
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: clamp(1rem, 3vw, 3rem); }
.about-intro {
  grid-column: 1 / -1;
  display: grid;
  gap: 1.5rem;
  width: min(100%, 36rem);
  margin-inline: auto;
  padding-block: clamp(1rem, 2vw, 2rem);
}

.collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

.collage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.collage figure {
  position: relative;
  min-width: 0;
  margin: 0;
}

.case-caption-figure { position: relative; }

:is(.collage, .case-caption-figure) figcaption { display: none; }

@media (width > 720px) {
  .about-intro {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(1.25rem, 4vw, 4rem);
  }

  .about-bio { max-width: 52ch; }
}

@media (width > 720px) and (min-height: 480px) {
  .about-bio {
    position: sticky;
    top: calc(var(--header-height) + clamp(1.5rem, 4vw, 3rem));
  }
}

:is(.project-caption, .collage figcaption, .case-caption-figure figcaption, .weather-caption) {
  position: absolute;
  pointer-events: none;
  inset-inline-start: 50%;
  bottom: 1rem;
  width: max-content;
  max-width: calc(100% - 1rem);
  box-sizing: border-box;
  padding: 4px 6px;
  transform: translateX(-50%);
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 85%);
  backdrop-filter: blur(10px);
  box-shadow: 0 .15rem .55rem rgb(0 0 0 / 15%);
  color: #24262a;
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
}

figcaption.medical-workflow-caption {
  max-width: min(56ch, calc(100% - 1rem));
  padding: 8px 14px;
  line-height: 1.55;
}

@media (hover: hover) and (width > 720px) {
  :is(.project-caption, .collage figcaption, .case-caption-figure figcaption, .weather-caption) {
    display: block;
    opacity: 0;
  }

  .weather-home .projects .project-caption {
    padding: 6px 10px;
    font-size: 16px;
    font-weight: 500;
  }

  :is(.project, .collage figure, .case-caption-figure, .weather-badge)[data-pointer-caption]:hover :is(.project-caption, .collage figcaption, .case-caption-figure figcaption, .weather-caption) {
    z-index: 2;
    inset: var(--caption-y) auto auto var(--caption-x);
    transform: translate(-50%, -100%);
  }

  :is(.project, .collage figure, .case-caption-figure, .weather-badge):is(:hover, :focus-visible) :is(.project-caption, .collage figcaption, .case-caption-figure figcaption, .weather-caption) {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  :is(.project-caption, .collage figcaption, .case-caption-figure figcaption, .weather-caption) { transition: opacity 160ms ease; }
}

.about-bio {
  display: grid;
  gap: 16px;
}

.about-bio p {
  margin: 0;
  color: #000;
  font-size: 16px;
  line-height: 1.65;
}

.case { max-width: 52rem; margin: auto; padding: 2rem 1rem 4rem; }
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 1rem 2rem;
  min-height: 119px;
  padding: 64px 1rem;
  border-top: 1px solid #fff;
  background: #2d3032;
  color: #efefef;
  font-size: 16px;
}
@media (max-width: 720px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .hero div { max-width: 100%; }
  .hero::before { width: 100%; top: -20%; height: 80%; opacity: .65; }
}


.landing {
  overflow-x: clip;
  --hero-height: clamp(25rem, 38.6vw, 36.5rem);
  position: relative;
  isolation: isolate;
}
@property --mesh-ax {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}
@property --mesh-ay {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}
@property --mesh-bx {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}
@property --mesh-by {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}

.weather-art {
  position: absolute;
  z-index: -1;
  top: calc(var(--header-height) + 60px - 11.18vw);
  right: -5.89%;
  width: 68.85%;
  aspect-ratio: 1041 / 827;
  background-image: var(--weather-gradient);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: weather-mesh var(--mesh-duration, 54s) ease-in-out infinite;
  pointer-events: none;
  --weather-gradient:
    radial-gradient(ellipse 33% 37% at calc(66% + var(--mesh-ax)) calc(41% + var(--mesh-ay)), #e76eaabc, transparent 100%),
    radial-gradient(ellipse 42% 32% at calc(53% + var(--mesh-bx)) calc(59% + var(--mesh-by)), #ffcdb3c2, transparent 100%),
    radial-gradient(ellipse 41% 39% at calc(57% - var(--mesh-bx)) calc(47% - var(--mesh-ay)), #f6a6bcad, transparent 100%);
}
.landing[data-weather="windy"] .weather-art {
  --weather-gradient:
    radial-gradient(ellipse 46% 29% at calc(54% + var(--mesh-ax)) calc(35% + var(--mesh-ay)), #8bbcafb8, transparent 100%),
    radial-gradient(ellipse 43% 33% at calc(57% + var(--mesh-bx)) calc(47% + var(--mesh-by)), #9fbdecbd, transparent 100%),
    radial-gradient(ellipse 40% 31% at calc(55% - var(--mesh-bx)) calc(35% - var(--mesh-ay)), #d1e6de, transparent 100%);
  --mesh-duration: 38s;
}
.landing[data-weather="cloudy"] .weather-art {
  --weather-gradient:
    radial-gradient(ellipse 24% 26% at calc(59% + var(--mesh-ax)) calc(33% + var(--mesh-ay)), #a5a9b2bb, transparent 100%),
    radial-gradient(ellipse 22% 22% at calc(41% + var(--mesh-bx)) calc(45% + var(--mesh-by)), #b9bcc5bc, transparent 100%),
    radial-gradient(ellipse 22% 22% at calc(73% - var(--mesh-bx)) calc(43% - var(--mesh-ay)), #aeb5c1b8, transparent 100%),
    radial-gradient(ellipse 40% 25% at calc(58% - var(--mesh-ax)) calc(49% - var(--mesh-by)), #adb2beca, transparent 100%),
    radial-gradient(ellipse 28% 25% at calc(32% + var(--mesh-bx)) calc(40% - var(--mesh-ay)), #b9bcc5bc, transparent 100%),
    radial-gradient(ellipse 33% 27% at calc(66% - var(--mesh-bx)) calc(60% + var(--mesh-by)), #aeb5c1b8, transparent 100%);
  --mesh-duration: 50s;
}
.landing[data-weather="rainy"] .weather-art {
  --weather-gradient:
    radial-gradient(ellipse 34% 37% at calc(58% + var(--mesh-ax)) calc(43% + var(--mesh-ay)), #819cc0, transparent 100%),
    radial-gradient(ellipse 41% 39% at calc(53% + var(--mesh-bx)) calc(54% + var(--mesh-by)), #b1bbdc, transparent 100%);
  --mesh-duration: 44s;
}
.landing[data-weather="snowy"] .weather-art {
  --weather-gradient:
    radial-gradient(ellipse 30% 26% at calc(62% + var(--mesh-ax)) calc(34% + var(--mesh-ay)), #fff, transparent 100%),
    radial-gradient(ellipse 35% 35% at calc(59% + var(--mesh-bx)) calc(45% + var(--mesh-by)), #c5dafa, transparent 100%),
    radial-gradient(ellipse 40% 37% at calc(53% - var(--mesh-bx)) calc(52% - var(--mesh-ay)), #ded5f2, transparent 100%);
  --mesh-duration: 46s;
}

@keyframes weather-mesh {
  25% {
    --mesh-ax: 5%;
    --mesh-ay: -3%;
    --mesh-bx: -4%;
    --mesh-by: 3%;
  }
  50% {
    --mesh-ax: -2%;
    --mesh-ay: 3%;
    --mesh-bx: 4%;
    --mesh-by: 5%;
  }
  75% {
    --mesh-ax: -4%;
    --mesh-ay: 1%;
    --mesh-bx: 2%;
    --mesh-by: -4%;
  }
}

.weather-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./weather-grain.png") repeat;
  opacity: .20;
  mask-image: var(--weather-gradient);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  background-position:
    calc(50% + var(--mesh-ax))
    calc(50% + var(--mesh-ay));
}

@media (prefers-reduced-motion: reduce) {
  .weather-art { animation: none; }
}

/* Weather colors for active navigation and reading progress. */
body[data-weather="clear"] { --weather-accent: #b97521; }
body[data-weather="cloudy"] { --weather-accent: #617b98; }
body[data-weather="windy"] { --weather-accent: #49827b; }
body[data-weather="rainy"] { --weather-accent: #416991; }
body[data-weather="snowy"] { --weather-accent: #687ea7; }
body[data-night][data-weather="clear"] { --weather-accent: #324e89; }
body[data-night][data-weather="cloudy"] { --weather-accent: #485263; }
body[data-night][data-weather="windy"] { --weather-accent: #305b70; }
body[data-night][data-weather="rainy"] { --weather-accent: #34466f; }
body[data-night][data-weather="snowy"] { --weather-accent: #535e90; }

header > a { opacity: .7; }
#site-nav a { opacity: .5; }

header > a:is(:focus-visible, :active, [aria-current="page"]),
#site-nav a:is(:focus-visible, :active, [aria-current="page"]) { opacity: 1; }

#site-nav a { position: relative; }

#site-nav a::before {
  content: "";
  position: absolute;
  inset-inline-end: calc(100% + .32rem);
  top: 50%;
  width: .32rem;
  height: .32rem;
  transform: translateY(-50%);
  background: var(--weather-accent);
  opacity: 0;
  pointer-events: none;
}

#site-nav a[aria-current="page"]::before { opacity: 1; }

@media (hover: hover) {
  header > a:hover,
  #site-nav a:hover { opacity: 1; }
  #site-nav a:not([aria-current="page"]):hover::before { opacity: .5; }
}

.landing .hero {
  min-height: var(--hero-height);
  padding-inline: clamp(1rem, 2.12vw, 2rem);
}
.landing .hero div { max-width: min(53vw, 50rem); }
.landing .hero h1,
.landing .hero p { font-size: 1.5rem; line-height: 1.4; }
.landing .hero h1 { margin-bottom: .65rem; font-weight: 300; }
.landing .hero p { margin-bottom: 0; }
.landing .hero::before { content: none; }
.weather {
  text-decoration: none;
  position: absolute;
  top: 3.5rem;
  right: clamp(1rem, 4vw, 4rem);
  padding: .25rem .625rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 18%);
  border: 1px solid rgb(36 38 42 / 8%);
  font-size: 1rem;
  line-height: 1.4;
}
.landing .projects { gap: clamp(.6rem, 1.45vw, 1.5rem); }

@media (max-width: 720px) {
  :is(.landing, .about-page) { --mobile-gutter: clamp(1.25rem, 6vw, 2rem); }

  .landing { --mobile-gutter: clamp(1.375rem, 6.25vw, 2rem); }

  :is(.landing, .about-page) > :is(header, footer) {
    padding-inline: var(--mobile-gutter);
  }

  .weather-art {
    top: 3.5rem;
    right: 0;
    width: 100%;
    opacity: .72;
  }

  .landing .hero {
    min-height: auto;
    padding: 6.5rem var(--mobile-gutter) 3.25rem;
  }

  .landing .hero div { max-width: 32ch; }
  .landing .hero h1 {
    margin-bottom: 1rem;
    font-size: 20px;
    line-height: 1.2;
  }
  .landing .hero p { font-size: 16px; line-height: 1.6; }
  .weather { top: 1.5rem; right: var(--mobile-gutter); font-size: .875rem; }

  .landing .projects {
    gap: 2rem 1.25rem;
    padding: 0 var(--mobile-gutter) 4rem;
  }

  .about {
    padding: 2.5rem var(--mobile-gutter) 3rem;
    gap: 3rem;
  }

  .about-intro { padding: 0; }
  .collage { gap: .75rem; }
  .about-page .about-experience { padding-block: 0; }
  .about-page .about-interests { padding-block: 0; }
}

@media (max-width: 540px) {
  .landing .projects { grid-template-columns: minmax(0, 1fr); }
}

.case-page {
  padding-inline: clamp(1rem, 2vw, 2rem);
}
.case-intro h1 {
  margin-bottom: 1.125rem;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.02;
}
.case-page :is(h1, h2, h3) {
  letter-spacing: -.025em;
}
.case-intro h1 + p {
  font-size: 15px;
}
.case-intro .case-context {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.case-intro p:last-child {
  max-width: 38rem;
}
.case-layout {
  display: grid;
  grid-template-columns: 12rem minmax(0, 52rem);
  justify-content: center;
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-block: clamp(2rem, 5vw, 4rem) 5rem;
}
.case-layout > .case-intro { grid-column: 2; }
.case-story { grid-column: 2; }
.case-nav {
  grid-area: 1 / 1 / span 2 / 2;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
  display: grid;
  gap: .75rem;
  font-size: .9375rem;
  line-height: 1.4;
  padding-inline-start: 1rem;
}
.case-nav a {
  width: fit-content;
  color: #706d68;
  text-decoration: none;
}
@media (hover: hover) and (width > 720px) {
  .case-nav a:hover { color: #000; }
}
.case-nav a[aria-current="location"] {
  color: #000;
}
.case-nav a[aria-current="location"] {
  position: relative;
}
.case-nav a[aria-current="location"]::before {
  content: "";
  position: absolute;
  inset-inline-start: -.7rem;
  top: .55em;
  width: .32rem;
  height: .32rem;
  background: var(--weather-accent);
}
.case-story section {
  scroll-margin-top: calc(var(--header-height) + clamp(2rem, 6vh, 4rem));
  margin-bottom: 3.5rem;
}
.case-story h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 400;
}
.case-story p {
  font-size: 16px;
  line-height: 1.6;
}
.case-story > section:has(+ #see-next) { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.case-story > #see-next { padding-top: clamp(1.5rem, 3vw, 2rem); }
.case-page .case-story #see-next-heading { margin-bottom: 1.125rem; }
.projects.related-case-studies { padding: 0; gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 540px) {
  .projects.related-case-studies { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .case-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.5rem;
    padding-bottom: 3rem;
  }

  .case-layout > .case-intro, .case-story, .case-nav { grid-area: auto; }

  .case-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 1;
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: .25rem .85rem;
    background: #fcfbf9;
    border-block: 1px solid rgb(36 38 42 / 12%);
  }

  .case-nav a {
    flex: none;
    padding-block: .65rem;
    white-space: nowrap;
  }

  .case-nav a[aria-current="location"]::before {
    top: 50%;
    transform: translateY(-50%);
  }

  .case-story section { scroll-margin-top: calc(var(--header-height) + 4.5rem); }
}

.case-figures {
  display: grid;
  gap: 1rem;
  margin-block: 1.5rem 2rem;
}
.case-figures-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.case-figures figure {
  margin: 0;
  min-width: 0;
}
.case-figures img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 600px) {
  .case-figures-pair { grid-template-columns: 1fr; }
}


.case-page .case-intro p:last-child { margin-bottom: 0; }
.case-page .case-intro p,
.case-page .case-story p { color: #797670; }
.case-story > section {
  border-top: 1px solid rgb(36 38 42 / 12%);
  padding-top: clamp(2.25rem, 4vw, 3.5rem);
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.case-story > section:last-child { margin-bottom: 0; }
.case-story p { max-width: 62ch; line-height: 1.7; }
.case-section-heading {
  max-width: 42rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.case-page .case-story .case-section-label {
  color: #6e6b66;
  font-size: .875rem;
  font-weight: 400;
  margin: 0 0 .75rem;
}
.case-section-heading h2 {
  color: #000;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
}
.case-impact {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}
.case-meta h3, .case-impact h3 {
  font-weight: 400;
  margin: 0 0 .75rem;
  font-size: 1rem;
  line-height: 1.35;
}
.case-meta h3 {
  color: #000;
  font-size: .875rem;
}
.case-impact h3 {
  color: #000;
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: .25rem;
}
.case-impact > div {
  padding-inline-start: clamp(.75rem, 2vw, 1.25rem);
}
.case-meta p, .case-impact p { margin-bottom: 0; }
.case-meta p {
  font-size: 16px;
  line-height: 1.4;
}
@media (min-width: 721px) {
  .case-meta p { min-block-size: 4.2em; }
}
.case-story > section > p + p { margin-top: 1.25rem; }
.case-page .case-figures { margin-block: clamp(1.75rem, 3vw, 2.5rem); }
.case-intro .case-figures { margin-top: clamp(2rem, 4vw, 3rem); }
.ceac-demo { margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; }
.ceac-demo video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(36 38 42 / 12%);
}
@media (max-width: 720px) {
  .case-meta { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .case-meta h3 { margin-bottom: .3rem; }
}

.case-reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 4;
  height: 2px;
  background: var(--weather-accent);
  transform: scaleX(var(--case-progress, 0));
  transform-origin: left;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .case-story > section {
    transition: opacity .85s ease-in-out;
  }

  .case-story > .case-reveal-pending:not(:focus-within, :target) {
    opacity: .08;
  }
}


@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .case-nav a { transition: color 180ms ease; }
}

/* Editorial case studies */
.case-editorial .case-layout {
  grid-template-columns: 10rem minmax(0, 66rem);
}

.case-editorial .case-intro > p {
  max-width: 38rem;
}

.case-editorial .case-figure-stage {
  background: #e7ede5;
  padding: clamp(.75rem, 4vw, 3.5rem);
}

.case-editorial .case-section-heading h2 {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
}

.case-section-copy p + p {
  margin-top: 1.25rem;
}

.case-editorial .case-figures-staggered {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.case-editorial .case-figures-staggered figure:first-child {
  width: min(100%, 48rem);
}

.case-editorial .case-figures-staggered figure:last-child {
  width: min(100%, 42rem);
  justify-self: end;
}

@media (min-width: 900px) {
  .case-editorial .case-section-split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: clamp(2rem, 5vw, 4rem);
  }

  .case-editorial .case-section-copy {
    padding-top: .25rem;
  }

  .case-editorial .case-section-split .case-figures {
    grid-column: 1 / -1;
  }

  .case-editorial .case-section-split .case-figures:last-child {
    margin-bottom: 0;
  }

}

@media (max-width: 720px) {
  .case-editorial .case-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* AI tools exploration */
.ai-exploration .ai-evidence {
  margin-block: 2rem;
  border-bottom: 1px solid rgb(36 38 42 / 12%);
}

.ai-exploration #design {
  border-top: 0;
}

.ai-exploration .ai-evidence > div {
  border-top: 1px solid rgb(36 38 42 / 12%);
  display: grid;
}

.ai-exploration .ai-evidence-copy {
  padding-block: clamp(1.25rem, 3vw, 2.5rem);
}

.ai-exploration .ai-evidence-copy p {
  margin-bottom: 0;
}

.case-editorial .case-impact {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.ai-exploration #findings .case-figures {
  margin-block: 1.5rem 0;
}

@media (min-width: 900px) {
  .ai-exploration #findings {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 5vw, 4rem);
  }

  .ai-exploration #findings .case-figures { margin: 0; }
}

.case-editorial .case-impact > div {
  background: transparent;
  padding: 0;
}

.ai-exploration .ai-evidence h3,
.ai-exploration .ai-media-note h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 .5rem;
}

.ai-exploration .ai-evidence figure {
  margin: 0;
  padding-bottom: 1.25rem;
}

.ai-exploration .ai-evidence img {
  display: block;
  width: 100%;
  height: auto;
}

.ai-exploration .ai-media-note {
  border-inline-start: 2px solid #898f7e;
  padding: .25rem 0 .25rem 1rem;
  margin-bottom: 2rem;
}

.ai-exploration .ai-media-note p {
  font-size: 16px;
  margin: 0;
}

@media (min-width: 900px) {
  .ai-exploration #overview .case-section-heading,
  .ai-exploration #overview .case-section-copy p:last-child {
    margin-bottom: 0;
  }

  .ai-exploration #overview .case-section-copy {
    align-self: center;
    padding-top: 0;
  }

  .ai-exploration .ai-evidence {
    display: grid;
    grid-auto-rows: 1fr;
  }

  .ai-exploration .ai-evidence > div {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .ai-exploration .ai-evidence-copy {
    padding-inline-end: clamp(1.25rem, 3vw, 2.5rem);
  }

  .ai-exploration .ai-evidence figure {
    border-inline-start: 1px solid rgb(36 38 42 / 12%);
    padding: clamp(1rem, 2vw, 1.5rem);
    display: grid;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .ai-exploration #workflow {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .ai-workflow-copy { grid-area: 1 / 2; }
  .ai-exploration #workflow .chronology-demo {
    grid-area: 1 / 1;
    margin: 0;
  }
}

.chronology-demo {
  position: relative;
  container-type: inline-size;
  width: min(100%, 36rem);
  aspect-ratio: 4292 / 2596;
  min-height: 12rem;
  margin: clamp(1.75rem, 4vw, 3rem) auto;
  overflow: hidden;
  isolation: isolate;
  background: #f8f8f6;
}

.chronology-entry {
  display: block;
  width: 100%;
  height: auto;
  visibility: hidden;
}

.chronology-chat {
  position: absolute;
  inset: 1% 0 auto;
  margin-inline: auto;
  height: 98%;
  aspect-ratio: 1328 / 2240;
}

.chronology-chat img {
  display: block;
  width: 100%;
  height: 100%;
}

.chronology-loading {
  position: absolute;
  inset: 0;
}

.chronology-message-cover {
  position: absolute;
  inset: 9% 3% auto;
  height: 9%;
  background: #fefdfb;
}

.chronology-chat .chronology-result {
  position: absolute;
  inset: 0;
  clip-path: inset(8.5% 3% 63% 3%);
}

.chronology-spinner {
  position: absolute;
  left: 5%;
  top: 13.15%;
  width: 4.2%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #fefdfb;
}

.chronology-spinner::before {
  content: "";
  box-sizing: border-box;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid #526b91;
  border-right-color: transparent;
  border-radius: 50%;
}

.chronology-click {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .chronology-demo { --chronology-duration: 7s; }

  .chronology-demo:is(.is-waiting, .is-playing) .chronology-entry {
    visibility: visible;
  }

  .chronology-demo.is-waiting .chronology-chat {
    visibility: hidden;
  }

  .chronology-demo.is-playing .chronology-chat {
    animation: chronology-drawer var(--chronology-duration) infinite;
  }

  .chronology-demo.is-playing .chronology-entry {
    animation: chronology-workspace var(--chronology-duration) infinite;
  }

  .chronology-demo.is-playing .chronology-message-cover {
    animation: chronology-loading-content var(--chronology-duration) infinite;
  }

  .chronology-demo.is-playing .chronology-result {
    animation: chronology-result-content var(--chronology-duration) infinite;
  }

  .chronology-demo.is-playing .chronology-spinner::before {
    animation: chronology-spin 2.4s linear infinite;
  }

  .chronology-demo.is-playing::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 23.25cqi;
    left: 76.5%;
    width: 20.125%;
    height: 4.35cqi;
    border-radius: .4cqi;
    background: #e4e9ed;
    mix-blend-mode: darken;
    pointer-events: none;
    animation: chronology-card-hover var(--chronology-duration) infinite;
  }

  .chronology-demo.is-playing .chronology-click {
    position: absolute;
    z-index: 2;
    display: block;
    top: min(42%, 25.4cqi);
    left: 83%;
    pointer-events: none;
    width: clamp(1.3rem, 6cqi, 2.15rem);
    aspect-ratio: 1;
    border: 1px solid rgb(255 255 255 / 82%);
    border-radius: 50%;
    background: linear-gradient(145deg, rgb(255 255 255 / 58%), rgb(255 255 255 / 8%));
    backdrop-filter: blur(2px);
    box-shadow: 0 .14rem .5rem rgb(38 57 82 / 22%), inset 0 0 .4rem rgb(255 255 255 / 60%);
    animation: chronology-tap var(--chronology-duration) infinite;
  }

  .chronology-demo.is-paused::before,
  .chronology-demo.is-paused *,
  .chronology-demo.is-paused .chronology-spinner::before {
    animation-play-state: paused;
  }
}

@keyframes chronology-workspace {
  0%, 19%, 100% { opacity: 1; }
  29%, 92% { opacity: 0; }
}

@keyframes chronology-drawer {
  0%, 23% { opacity: 0; transform: translateY(.8rem) scale(.98); }
  34%, 88% { opacity: 1; transform: translateY(0) scale(1); }
  94%, 100% { opacity: 0; transform: translateY(0) scale(1); }
}

@keyframes chronology-loading-content {
  0%, 48% { opacity: 0; }
  55%, 100% { opacity: 1; }
}

@keyframes chronology-result-content {
  0%, 54% { opacity: 0; transform: translateY(.55rem) scale(.98); }
  64%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes chronology-card-hover {
  0%, 10%, 25%, 100% { opacity: 0; }
  13%, 19% { opacity: 1; }
}

@keyframes chronology-tap {
  0%, 5% { opacity: 0; transform: translate(-115%, 10%) scale(1); }
  13% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  17% { opacity: 1; transform: translate(-50%, -50%) scale(.78); }
  24%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes chronology-spin {
  to { transform: rotate(1turn); }
}

/* About */
.about-experience,
.about-interests {
  grid-column: 1 / -1;
  min-width: 0;
}

.about-experience {
  width: min(100%, 66rem);
  margin-inline: auto;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.about-experience h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -.025em;
  margin: 0 0 1.5rem;
}

.about-experience dl,
.about-experience dd {
  margin: 0;
}

.about-experience dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 4ch;
  align-items: baseline;
  gap: .35rem 1.25rem;
  padding-block: 1rem;
  border-top: 1px solid rgb(36 38 42 / 12%);
}

.about-experience dd:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.about-experience dd {
  color: #706d68;
}

.about-interests {
  text-align: right;
  padding-block: 1rem;
}

.about-ticker {
  container-type: inline-size;
  overflow: hidden;
}

.about-ticker-track {
  display: flex;
  width: max-content;
  animation: about-ticker 24s linear infinite;
}

.about-ticker-track p {
  min-width: 100cqi;
  margin: 0;
  padding-inline-end: .4em;
  color: #463df2;
  text-align: left;
  font-size: clamp(2rem, 6vw, 5rem);
  white-space: nowrap;
}

@keyframes about-ticker {
  to { transform: translateX(-50%); }
}

@media (max-width: 540px) {
  .about-experience dl > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .about-experience dd:first-of-type {
    grid-area: 2 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-ticker-track p[aria-hidden="true"] {
    display: none;
  }

  .about-ticker-track {
    width: auto;
    animation: none;
  }

  .about-ticker-track p {
    white-space: normal;
  }
}

@media (hover: none), (max-width: 720px) {
  .projects .project {
    text-decoration: none;
  }

  .projects .project .project-caption {
    position: static;
    display: block;
    width: auto;
    max-width: none;
    margin-top: 4px;
    padding: 0;
    transform: none;
    border: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    color: #797670;
    opacity: 1;
    text-align: start;
    font-size: 14px;
    font-weight: 400;
  }
}


@media (max-width: 720px) {
  footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 32px;
    padding-block: 48px;
  }

  footer a[href^="mailto:"] {
    overflow-wrap: anywhere;
  }
}

.site-menu-toggle {
  display: none;
}

@media (max-width: 720px) {
  .has-site-menu:has(.site-menu-toggle[aria-expanded="true"]) { z-index: 5; }

  .has-site-menu {
    padding-block: .5rem;
  }

  .has-site-menu .site-menu-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .site-menu-toggle::before,
  .site-menu-toggle::after {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
  }

  body:has(.site-menu-toggle[aria-expanded="true"]) {
    overflow: hidden;
  }

  .has-site-menu .site-menu-toggle[aria-expanded="true"] {
    position: fixed;
    top: max(.5rem, env(safe-area-inset-top));
    right: var(--mobile-gutter, 1rem);
    z-index: 1;
  }

  .site-menu-toggle[aria-expanded="true"]::before {
    transform: translateY(3px) rotate(45deg);
  }

  .site-menu-toggle[aria-expanded="true"]::after {
    transform: translateY(-3px) rotate(-45deg);
  }

  .has-site-menu #site-nav {
    position: fixed;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1rem;
    padding: 4rem 1.5rem;
    overflow-y: auto;
    background: #fcfbf9;
    font-size: 1.75rem;
  }

  .has-site-menu .site-menu-toggle[aria-expanded="false"] + #site-nav {
    display: none;
  }

  .has-site-menu #site-nav a { padding-block: .75rem; }
}

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

.ceac-demo { position: relative; }

.weather-preview-controls {
  position: relative;
  padding: 1rem clamp(1rem, 3vw, 3rem);
}

@media (min-width: 1920px) {
  :root {
    --wide-page-gutter: 120px;
    font-size: clamp(17px, calc(14px + .15625vw), 18px);
  }

  body > :is(header, footer),
  .landing .hero,
  .landing main > .projects,
  .weather-preview-controls,
  main:is(.about, .case-page, .case-password) {
    padding-inline: var(--wide-page-gutter);
  }

  .landing .weather { right: var(--wide-page-gutter); }

  .case-layout {
    grid-template-columns: 12rem minmax(0, 1fr);
  }

  .case-editorial .case-layout {
    grid-template-columns: 10rem minmax(0, 1fr);
  }

  .case-nav { padding-inline-start: 0; }
}
