@font-face {
  font-family: Manrope;
  src: url('./manrope.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./plex-mono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9f7;
  --white: #fff;
  --ink: #1d1427;
  --body: #5a5263;
  --rule: #e4dee8;
  --violet: #61368f;
  --lavender: #dcc3ff;
  --deep: #130b20;
  --tint: #f3eef8;
  --sans: Manrope, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 500 1rem/1.65 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 750; letter-spacing: -.028em; }
p { color: var(--body); }
a { color: inherit; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #985cd9; outline-offset: 5px; }
main:focus { outline: none; }
::selection { color: var(--deep); background: var(--lavender); }
.shell { width: min(100% - clamp(2.5rem, 10vw, 9rem), 1200px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: .8rem; left: .8rem; z-index: 10; padding: .6rem 1rem; border-radius: .3rem; background: var(--white); color: var(--ink); }

.site-header { position: relative; z-index: 2; background: var(--paper); border-bottom: 1px solid #e8e1eb; }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1.6rem; }
.brand { display: inline-flex; align-items: center; gap: .62rem; flex: none; text-decoration: none; white-space: nowrap; font-size: 1.18rem; letter-spacing: -.055em; font-weight: 800; }
.brand svg { width: 29px; height: 29px; padding: 5px; border-radius: 6px; color: #e5ceff; background: #271639; }
.brand strong { color: var(--violet); font-weight: 700; }
#main-nav { display: flex; align-items: center; gap: clamp(.7rem, 2.05vw, 2.05rem); }
#main-nav a { position: relative; padding-block: 1.55rem; color: #4f4658; text-decoration: none; font-size: .89rem; font-weight: 700; }
#main-nav a:hover, #main-nav a[aria-current] { color: var(--violet); }
#main-nav a[aria-current]::after { position: absolute; right: 0; bottom: .82rem; left: 0; height: 2px; border-radius: 2px; background: #a275d5; content: ''; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: .67rem 1.16rem; border: 1px solid transparent; border-radius: .4rem; text-decoration: none; font-size: .9rem; font-weight: 800; line-height: 1.35; transition: color 160ms, background-color 160ms, border-color 160ms; }
.button-header { min-height: 39px; padding: .52rem .9rem; color: #fff; background: #241633; }
.button-header:hover, .button-dark:hover { background: #4f2c6f; }
.button-lavender { background: var(--lavender); color: #211230; }
.button-lavender:hover { background: #ead8ff; }
.button-outline { color: #fff; border-color: #8d739f; background: #25153580; }
.button-outline:hover { background: #38234e; border-color: #d6baed; }
.button-light { color: #241633; background: #fff; }
.button-light:hover { background: #e6d3fa; }
.button-dark { color: #fff; background: #241633; }

.eyebrow { display: inline-flex; align-items: center; gap: .65rem; color: var(--violet); font: 400 .81rem/1.45 var(--mono); letter-spacing: .095em; text-transform: uppercase; }
.eyebrow > span { display: block; width: 1.05rem; height: 1px; flex-shrink: 0; background: currentColor; }
.collaboration .eyebrow { color: #dfc8ff; }

.section { padding-block: clamp(3.6rem, 7vw, 7.1rem); }
.section h2, .collaboration h2 { margin-top: .75rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.1rem 2rem; margin-bottom: 2.1rem; }
.section-head p, .split-section > div:first-child > p, .lede { max-width: 630px; margin-top: .88rem; }
.section-head > a { flex: none; margin-bottom: .15rem; }
.text-link { display: inline; padding: 0; border: 0; color: var(--violet); background: transparent; font-size: .94rem; font-weight: 800; text-underline-offset: .28em; text-decoration: underline; text-decoration-color: #ae8bc8; }
.text-link:hover { color: #351649; text-decoration-color: currentColor; }
.section-link { display: inline-block; margin-top: 1.75rem; }
.tinted { background: var(--tint); border-block: 1px solid var(--rule); }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-card { display: flex; flex-direction: column; align-items: start; min-height: 287px; padding: 1.45rem; border: 1px solid var(--rule); border-radius: .75rem; background: #fff; }
.card-head { display: flex; width: 100%; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.32rem; }
.symbol { display: inline-grid; width: 47px; height: 47px; flex: none; place-items: center; border: 1px solid #e7dcef; border-radius: .52rem; color: #6a3b98; background: #f3eafa; }
.status { display: inline-flex; gap: .42rem; align-items: center; padding: .27rem .55rem; border-radius: 2rem; background: #f2edf7; color: #5e4372; font-size: .78rem; font-weight: 750; line-height: 1.3; }
.status::before { width: 5px; height: 5px; flex: none; border-radius: 100%; background: #8350ad; content: ''; }
.project-field { color: #715982; font: 400 .79rem/1.4 var(--mono); }
.project-card h3 { margin: .4rem 0 .6rem; font-size: 1.64rem; }
.project-card p { margin-bottom: 1.4rem; }
.card-bottom { align-self: stretch; margin-top: auto; padding-top: .85rem; border-top: 1px solid #ece6ef; }
.link-unavailable { color: #65586d; font-size: .91rem; }

.split-section { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 7vw, 7rem); }
.split-section > div:first-child > a { display: inline-block; margin-top: 1.35rem; }
.research-list { border-top: 1px solid #ddd1e5; }
.research-card { display: flex; gap: 1.15rem; align-items: start; padding-block: 1.1rem; border-bottom: 1px solid #ddd1e5; }
.research-card p { margin-top: .3rem; }
.research-card a { display: inline-block; margin-top: .35rem; }
.research-card .symbol { background: #fbf7ff; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; margin: 1.9rem 0 0; list-style: none; }
.process-grid li { padding: 1.1rem 1rem 0; border-top: 1px solid #cbb9d6; }
.process-grid li + li { border-left: 1px solid var(--rule); }
.step-number { display: inline-block; margin-bottom: .7rem; color: var(--violet); font: .82rem var(--mono); }
.process-grid p { margin-top: .5rem; }

.collaboration { padding-block: clamp(3rem, 6vw, 5.5rem); color: #fff; background: #251637; }
.collaboration-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.collaboration-inner p { max-width: 36rem; margin-top: .62rem; color: #e4d8ee; }
.collaboration-inner .button { flex: none; }
.footer { padding-block: 2.9rem 1.35rem; background: #160e1f; color: #ebdff4; }
.footer .brand strong { color: #dec1fa; }
.footer .brand svg { background: #332047; }
.footer-main { display: flex; align-items: start; justify-content: space-between; gap: 1.35rem 2rem; }
.footer-main p { margin-top: .6rem; color: #c8bbd1; font-size: .92rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; }
.footer nav a { color: #ebdff4; text-decoration: none; font-size: .88rem; }
.footer a:hover { text-decoration: underline; text-underline-offset: .27em; }
.footer-end { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 2rem; padding-top: .9rem; border-top: 1px solid #43334d; color: #c8bbd1; font-size: .84rem; }

.prose { max-width: 700px; }
.prose p + p { margin-top: 1rem; }
.prose h3 { margin: 1.35rem 0 .4rem; }
.objective-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; padding: 0; margin-top: 1.65rem; list-style: none; }
.objective-list li { padding: .9rem .25rem; border-top: 1px solid #d9cce1; }

.project-index { display: flex; flex-wrap: wrap; gap: .65rem; padding-block: 1.35rem; }
.project-index a { padding: .36rem .72rem; border: 1px solid #e4d8ed; border-radius: .35rem; color: #543071; background: #f7f1fb; text-decoration: none; font-weight: 750; }
.project-index a:hover { background: #ecdef5; }
.project-details { margin-bottom: 4.2rem; }
.project-detail { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.4rem, 7vw, 6.5rem); padding-block: clamp(2rem, 5.4vw, 4.5rem); border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.project-aside .project-field { margin-top: .65rem; }
.project-aside h2 { margin: .3rem 0 .65rem; }
.project-aside > div { margin-top: .8rem; }
.project-summary { color: var(--ink); font-size: 1.19rem; font-weight: 700; }
.architecture { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .8rem; }
.architecture div { padding: .8rem; border: 1px solid var(--rule); border-radius: .45rem; background: #fff; }
.architecture dt { font-weight: 800; }
.architecture dd { margin: .23rem 0 0; color: var(--body); }
.empty-state { max-width: 670px; padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--rule); border-radius: .65rem; background: #fff; }
.empty-state h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
.empty-state p { margin: .6rem 0 1.05rem; }
.filter { display: inline-grid; gap: .3rem; margin-bottom: 1rem; }
.publication-list article { padding-block: 1.4rem; border-top: 1px solid var(--rule); }
.publication-list h2 { font-size: 1.55rem; }
.publication-list article p { margin-top: .45rem; }

.contact-layout h3 { margin-top: 1.65rem; }
.contact-email { display: inline-flex !important; align-items: center; gap: .5rem; color: var(--violet); font-weight: 800; text-underline-offset: .22em; overflow-wrap: anywhere; }
.contact-email svg { flex: none; }
.contact-note { font-size: .9rem; }
.inquiry-list { margin: .6rem 0 0; padding-left: 1.15rem; color: var(--body); }
.inquiry-list li { margin: .16rem 0; }
.contact-form { align-self: start; padding: clamp(1.15rem, 3vw, 2.1rem); border: 1px solid var(--rule); border-radius: .7rem; background: #fff; }
.contact-form h2 { margin: 0; font-size: 1.72rem; }
.contact-form > p { margin: .38rem 0 1rem; }
.contact-form label { display: grid; gap: .35rem; margin-bottom: .9rem; font-size: .9rem; font-weight: 750; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
input, textarea, select { width: 100%; min-width: 0; padding: .6rem .65rem; border: 1px solid #c8bbd2; border-radius: .35rem; color: var(--ink); background: var(--paper); }
textarea { resize: vertical; }
select { appearance: none; padding-right: 2.15rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2361368f' stroke-width='1.6'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E"); background-size: 14px; background-position: right .65rem center; background-repeat: no-repeat; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.05rem; }
.contact-form .form-status { margin: .65rem 0 0; font-size: .88rem; }
.form-status:empty { margin: 0; }

@media (max-width: 1000px) {
  .header-inner { gap: .85rem; }
  .button-header { display: none; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 63px; flex-wrap: wrap; gap: 0; }
  .menu-enabled .menu-toggle { display: flex; align-items: center; gap: .31rem; padding: .42rem .55rem; border: 1px solid var(--rule); border-radius: .35rem; color: var(--ink); background: transparent; font-size: .86rem; font-weight: 750; }
  .menu-toggle svg { width: 18px; height: 18px; }
  #main-nav { width: 100%; flex-wrap: wrap; gap: 0 .95rem; }
  .menu-enabled #main-nav { display: none; }
  .menu-enabled #main-nav.open { display: flex; flex-direction: column; align-items: stretch; padding-bottom: .55rem; }
  #main-nav a { padding-block: .56rem; }
  #main-nav a[aria-current]::after { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: auto; }
  .split-section, .project-detail { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0; }
  .process-grid li:nth-child(odd) { border-left: 0; }
  .section-head, .collaboration-inner, .footer-main { align-items: start; flex-direction: column; }
}
@media (max-width: 410px) {
  .architecture, .objective-list, .form-pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Applied mathematics exhibition plates */
:root { --paper:#f7f7f1; --ink:#242821; --body:#50554c; --rule:#cbcec1; --violet:#9c351e; --lavender:#f0b89e; --deep:#242821; --tint:#eeefe6; }
h1,h2,h3,.brand { letter-spacing:-.04em; text-wrap:balance; }
.site-header { border-color:var(--rule); }
.header-inner { min-height:70px; }
.brand svg,.footer .brand svg { background:var(--ink); color:#f0d8b9; border-radius:50%; }
.brand strong,#main-nav a[aria-current] { color:var(--violet); }
#main-nav a[aria-current]::after { background:var(--violet); }
#main-nav a { color:var(--body); }
.button,.project-index a { border-radius:2px; }
.button-lavender,.button-dark { background:var(--ink); color:white; }
.button-lavender:hover,.button-dark:hover { background:#434a3b; }
.button-outline,.button-outline:hover { border-color:transparent; color:var(--violet); background:transparent; text-decoration:underline; text-underline-offset:.32em; }
.project-grid { display:block; border-top:2px solid var(--ink); }
.project-card { display:grid; grid-template-columns:1fr 1.35fr .7fr; gap:2rem; align-items:start; min-height:0; padding:1.6rem 0; border:0; border-radius:0; border-bottom:1px solid var(--rule); background:none; }
.project-card h3 { margin:0 0 .45rem; font-size:clamp(1.6rem,3vw,2.25rem); }
.project-card p { margin:0; }
.project-field,.step-number { color:var(--body); font-family:var(--sans); }
.card-bottom { display:grid; gap:.65rem; justify-items:start; border:0; margin:0; padding:0; }
.status { background:none; padding:0; color:var(--body); }
.status::before { background:var(--violet); }
.text-link { text-decoration-color:currentColor; }
.section h2,.collaboration h2 { margin-top:0; }
.collaboration,.footer { background:#242821; }
.collaboration-inner p,.footer-main p,.footer a,.footer-end,.footer .brand strong { color:#dce0d2; }
.footer-end { border-color:#545a4c; }
.contact-form,.empty-state { border-radius:2px; }
.symbol,.research-card .symbol,.project-index a { background:var(--tint); color:var(--ink); border-color:var(--rule); }
.research-list,.research-card,.process-grid li,.objective-list li { border-color:var(--rule); }
:focus-visible { outline-color:#ab442b; }
::selection { color:#242821; background:#edbfa7; }
@media(max-width:760px) {
 .project-card { grid-template-columns:1fr; gap:.7rem; }
 .card-bottom { display:flex; align-items:center; justify-content:space-between; }
}

.decision-figure, .foundry-flow { margin:0; color:var(--ink); }
.decision-figure { padding:clamp(1rem,2.8vw,2.5rem); background:var(--paper); border:1px solid var(--rule); }
.decision-figure figcaption, .foundry-flow figcaption { font-size:clamp(1.25rem,2.25vw,1.8rem); font-weight:750; line-height:1.2; letter-spacing:-.035em; }
.decision-stages, .foundry-flow ol { list-style:none; padding:0; margin:1.4rem 0 0; }
.decision-stages li, .foundry-flow li { position:relative; padding:0 0 1.2rem 1.65rem; }
.decision-stages li::before, .foundry-flow li::before { content:''; position:absolute; width:.65rem; height:.65rem; left:0; top:.45rem; border:2px solid var(--violet); background:var(--paper); border-radius:50%; z-index:1; }
.decision-stages li::after, .foundry-flow li:not(:last-child)::after { content:''; position:absolute; width:1px; background:#8b8e81; left:.31rem; top:.8rem; bottom:-.65rem; }
.decision-stages li:last-child::after { bottom:0; }
.decision-figure strong, .foundry-flow strong { display:block; font-weight:800; line-height:1.35; }
.decision-figure span, .foundry-flow span { display:block; color:var(--body); font-size:1rem; line-height:1.5; }
.decision-fork { margin-left:.31rem; display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.decision-fork > div { position:relative; padding-top:1rem; }
.decision-fork > div::before { position:absolute; top:0; left:0; height:.65rem; width:1px; background:#8b8e81; content:''; }
.decision-fork > div:first-child::after { position:absolute; left:0; top:0; width:calc(100% + 1rem); height:1px; background:#8b8e81; content:''; }
.decision-fork small { display:block; min-height:2.8em; color:var(--violet); font-size:.85rem; line-height:1.35; }
.foundry-flow { margin-top:1.6rem; padding:1.4rem 0 0; border-top:1px solid var(--rule); }
.foundry-flow li:last-child { padding-bottom:0; }
@media (max-width:420px) {
 .decision-fork { display:block; border-left:1px solid #8b8e81; }
 .decision-fork > div { padding:.55rem 0 .3rem 1.2rem; }
 .decision-fork > div::before { height:1px; width:.8rem; top:1.15rem; }
 .decision-fork > div:first-child::after { display:none; }
 .decision-fork small { min-height:0; margin-bottom:.23rem; }
}

.page-hero {
  color: #f3f8f4;
  background: radial-gradient(ellipse at 76% 40%, #1c4140, #10282c 40%, #09181e 78%);
  border-bottom: 2px solid #ba6a45;
}
.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 3.4vw, 3.8rem);
  align-items: center;
  padding-block: clamp(2.75rem, 6vw, 6rem);
}
.page-hero h1 {
  font-size: clamp(2.75rem, 5.3vw, 5.4rem);
  line-height: 1.02;
  text-wrap: balance;
}
.page-hero h1 em { color: #ffd9af; font-style: normal; }
.page-hero-copy p { max-width: 49ch; margin-top: 1rem; color: #d2e1da; font-size: 1.08rem; }
.page-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.2rem; margin-top: 1.6rem; }
.page-hero-actions .button { color: #142923; background: #ffdbb4; }
.page-hero-actions .button:hover { background: #ffebd6; }
.page-hero-actions .text-link { color: #f4faf6; }
.page-hero :focus-visible { outline-color: #ffdbb4; }
.page-diagram {
  --diagram-line: #78ada3;
  min-width: 0;
  margin: 0;
  text-align: center;
}
.page-diagram figcaption {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .85rem;
  color: #d9ede3;
  font-size: .95rem;
  font-weight: 700;
}
.page-diagram figcaption::before, .page-diagram figcaption::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #456a65;
}
.diagram-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
}
.diagram-center {
  min-width: 0;
  background: radial-gradient(ellipse at center 44%, #71baa324, transparent 67%);
}
.diagram-center svg { display: block; width: 100%; max-width: 18rem; margin-inline: auto; overflow: visible; }
.diagram-center strong { display: block; color: #ffdbb4; font-size: 1rem; line-height: 1.35; }
.diagram-object { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.fine-wire { stroke: url(#diagram-light); stroke-width: .8; opacity: .72; }
.strong-wire { stroke: #f8c797; stroke-width: 1.5; }
.diagram-labels {
  display: grid;
  gap: .95rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e8f3ef;
  font-size: .95rem;
  line-height: 1.35;
}
.diagram-labels li { display: flex; align-items: center; gap: .45rem; }
.diagram-labels li::before, .diagram-inputs li::after {
  content: '';
  flex: 0 0 clamp(.8rem, 2vw, 1.9rem);
  height: 1px;
  background: var(--diagram-line);
}
.diagram-inputs li { justify-content: flex-end; text-align: right; }
.diagram-inputs li::before { display: none; }
.diagram-outputs li { text-align: left; }
@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-diagram { width: min(100%, 38rem); }
}
@media (max-width: 540px) {
  .page-diagram figcaption { margin-bottom: 1rem; }
  .diagram-flow { grid-template-columns: 1fr; }
  .diagram-center { padding: .35rem 0 .75rem; }
  .diagram-center svg { width: 8.75rem; }
  .diagram-labels {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: .4rem 1.05rem;
  }
  .diagram-labels li { flex: 0 1 auto; flex-direction: column; justify-content: space-between; text-align: center; }
  .diagram-labels li::before, .diagram-inputs li::after { flex: 0 0 .7rem; width: 1px; height: auto; }
}

.diagram-figure { margin: 0; }
.diagram-motion-toggle {
  margin-top: .65rem;
  padding: .4rem .65rem;
  border: 1px solid #60857f;
  border-radius: 2px;
  background: transparent;
  color: #d9ede3;
  font-size: .82rem;
}
.diagram-motion-toggle:hover { color: #ffdbb4; border-color: #ffdbb4; }
[data-diagram-motion="decision"] .diagram-labels li::before,
[data-diagram-motion="decision"] .diagram-inputs li::after,
[data-diagram-motion="comparison"] .diagram-labels li::before,
[data-diagram-motion="comparison"] .diagram-inputs li::after {
  background: currentColor;
  opacity: .7;
}
[data-diagram-motion] .diagram-center { position: relative; isolation: isolate; }
.diagram-orbit {
  position: absolute;
  z-index: -1;
  inset: 0 0 1.4rem;
  width: 100%;
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
  background: radial-gradient(ellipse at 46% 18%, #e7ad6940, transparent 46%),
    radial-gradient(ellipse at 55% 82%, #87f4cc33, transparent 48%);
  pointer-events: none;
}
@media (max-width: 540px) {
  .diagram-orbit { width: 9rem; }
}

[data-diagram-motion="decision"] .diagram-flow { position: relative; }
[data-diagram-motion="decision"] .diagram-labels { position: relative; }
.diagram-label-text { position: relative; }
.diagram-label-outline {
  position: absolute;
  inset: -.24rem -.36rem;
  border: 1px solid #ffd2a2;
  border-radius: .3rem;
  background: #ffd2a21f;
  opacity: 0;
  pointer-events: none;
}
.diagram-trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.diagram-trace path {
  fill: none;
  stroke: #ffce9e;
  stroke-width: 1.5;
  opacity: 0;
}
.diagram-trace circle {
  fill: #ffdfb8;
  opacity: 0;
  filter: drop-shadow(0 0 5px #f8aa68);
}

.comparison-sweep {
  opacity: 0;
  fill: #ffe2af;
}
.comparison-line {
  stroke: #ffe2af;
  stroke-width: 2;
  stroke-linecap: round;
}
.record-sheet { fill: none; stroke-linejoin: round; }
.record-paper {
  fill: #163c3f;
  stroke: #f8c797;
  stroke-width: 1.35;
}

.portfolio-heading, .research-heading { position: relative; }
.portfolio-heading::after, .research-heading::after {
  content: '';
  position: absolute;
  inset: auto auto -.35rem 0;
  width: 2.75rem;
  height: 2px;
  background: var(--violet);
}
@media (prefers-reduced-motion: no-preference) {
  .portfolio-heading.scroll-cue-in-view::after,
  .research-heading.scroll-cue-in-view::after {
    transform-origin: left;
    animation: scroll-rule-enter var(--scroll-rule-duration, 220ms) ease-out;
  }
  @keyframes scroll-rule-enter {
    from { transform: scaleX(.18); }
    to { transform: scaleX(1); }
  }
}

.project-index-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.project-index-bar .project-index { padding-block: .65rem; }
.project-index a { position: relative; }
.project-index a::after {
  content: '';
  position: absolute;
  inset: auto .7rem .15rem;
  height: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
}
.project-index a[aria-current="location"] { color: var(--ink); }
.project-index a[aria-current="location"]::after { transform: scaleX(1); }
.project-portfolio .project-detail { scroll-margin-top: 6rem; }
@media (prefers-reduced-motion: no-preference) {
  .project-index a::after { transition: transform 160ms ease-out; }
}
@media (max-width: 540px) {
  .project-index-bar .project-index { gap: .4rem; }
  .project-index-bar a { padding-inline: .48rem; font-size: .9rem; }
  .project-portfolio .project-detail { scroll-margin-top: 8rem; }
}


.research-heading { --scroll-rule-duration: 200ms; }
.process-grid { position: relative; }
.process-grid::before, .process-grid li:nth-child(odd)::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--violet);
  pointer-events: none;
  transform-origin: left;
}
.process-grid li:nth-child(odd)::before { display: none; }

@media (max-width: 760px) {
  .process-grid::before { display: none; }
  .process-grid li:nth-child(odd) { position: relative; }
  .process-grid li:nth-child(odd)::before {
    display: block;
    inset: -1px auto auto 0;
    width: 200%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .process-grid.scroll-cue-in-view::before,
  .process-grid li.scroll-cue-in-view:nth-child(odd)::before {
    animation: scroll-rule-enter 250ms ease-out;
  }
}

.founder-portrait {
  justify-self: center;
  width: min(100%, 21rem);
  margin: 0;
  padding: .5rem;
  border: 1px solid #60857f;
  background: #0b2025;
}
.founder-portrait img {
  display: block;
  width: 100%;
  height: auto;
}
