:root {
  --paper: #f6f5f1;
  --ink: #252823;
  --muted: #696c64;
  --line: #e1e1d9;
  --accent: #554bc4;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  display: block;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #e3dff8; }
.portfolio {
  width: min(1140px, 100%);
  padding: 36px 48px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.profile { padding-top: 9px; }
h1 {
  font-family: var(--serif);
  font-size: 5.8rem;
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1;
  margin: 0 0 24px;
}
h1 span { color: var(--accent); }
.bio { color: var(--muted); font-size: 1rem; line-height: 1.65; margin: 0 0 23px; max-width: 235px; }
.socials { display: flex; flex-wrap: wrap; gap: 24px; }
.socials a { font-size: 1rem; text-decoration: underline; text-decoration-color: #b7baaf; text-underline-offset: 5px; }
.versions { display: grid; grid-template-columns: max-content max-content; gap: 8px 20px; margin-top: 32px; }
.versions a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.versions a { color: var(--muted); font-size: .875rem; line-height: 1.5; white-space: nowrap; }
.versions a:hover, .versions a[aria-current="page"] { color: var(--accent); }
.versions a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
main { min-width: 0; }
.profile { min-width: 0; }
h2 { font-size: .875rem; font-weight: 500; color: var(--muted); margin: 0 0 13px; line-height: 1.5; }
.project-list { list-style: none; margin: 0; padding: 0; }
.project-list li { padding: 16px 0 17px; border-bottom: 1px solid var(--line); }
.project-list li:last-child { border-bottom: 0; padding-bottom: 0; }
:is(.mode-original, .mode-animated) .project-list > li { transition: opacity 300ms cubic-bezier(.4, 0, .2, 1); }
:is(.mode-original, .mode-animated) .project-list:has(.project-entry:focus-visible) > li:not(:has(.project-entry:focus-visible)) { opacity: .5; }
.mode-animated .project-list:has(.project-entry:focus-visible) > li:not(:has(.project-entry:focus-visible)) .diagram svg * { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  :is(.mode-original, .mode-animated) .project-list:not(:has(.project-entry:focus-visible)):has(> li:hover) > li:not(:hover) { opacity: .5; }
  .mode-animated .project-list:not(:has(.project-entry:focus-visible)):has(> li:hover) > li:not(:hover) .diagram svg * { animation-play-state: paused; }
}
.project-entry { display: grid; grid-template-columns: minmax(0, 1fr) 124px; align-items: center; gap: 24px; }
.project-copy { min-width: 0; }
.project-entry:hover { color: inherit; }
.project-entry:hover h3, .project-entry:focus-visible h3 { color: var(--accent); }
.project-preview { display: block; width: 124px; height: 80px; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.project-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.project-entry[href*="cookbook"] .project-preview img { object-position: center; }
h3 { font-family: var(--serif); font-size: 1.85rem; font-weight: 400; letter-spacing: -.015em; line-height: 1.15; margin: 0 0 7px; }
.project-list p { color: var(--muted); font-size: 1rem; line-height: 1.5; margin: 0; }
.project-list .project-tech { font-size: .75rem; line-height: 1.5; margin-top: 6px; }
.local-label { white-space: nowrap; font-family: var(--sans); font-size: .75rem; letter-spacing: 0; color: var(--muted); margin-left: 12px; vertical-align: middle; font-weight: 400; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 8px; left: 8px; transform: translateY(-200%); background: var(--ink); color: white; padding: 10px 14px; z-index: 2; }
.skip-link:focus { transform: none; }
:is(.mode-original, .mode-animated, .mode-hover) { --project-preview-width: 180px; --project-preview-height: 104px; --project-preview-gap: 20px; }
:is(.mode-original, .mode-animated, .mode-hover) .project-entry { grid-template-columns: minmax(0, 1fr) var(--project-preview-width); gap: var(--project-preview-gap); min-height: var(--project-preview-height); }
:is(.mode-original, .mode-animated) .project-preview { width: var(--project-preview-width); height: var(--project-preview-height); }
.mode-animated .diagram { background: var(--diagram-bg); border-color: color-mix(in srgb, var(--diagram-ink) 15%, transparent); border-radius: 4px; }
.mode-hover-play .project-preview { position: relative; }
.mode-hover-play .hover-animation { display: none; position: absolute; inset: 0; background: var(--diagram-bg); }
.mode-hover-play .project-entry:focus-visible .hover-animation { display: block; }
@media (hover: hover) and (pointer: fine) {
  .mode-hover-play .project-list:not(:has(.project-entry:focus-visible)) > li:hover .hover-animation { display: block; }
}
.diagram svg { display: block; width: 100%; height: 100%; overflow: hidden; stroke-linecap: round; stroke-linejoin: round; }
.diagram-review { --diagram-bg: #f8faf9; --diagram-ink: #202522; --diagram-accent: #286146; }
.diagram-recipe { --diagram-bg: #27211e; --diagram-ink: #efe8dc; --diagram-accent: #d7b787; }
.diagram-signals { --diagram-bg: #fff; --diagram-ink: #20232a; --diagram-accent: #4169e1; }
.diagram-map { --diagram-bg: #e9ece5; --diagram-ink: #171a20; --diagram-accent: #253c34; }
.diagram-search { --diagram-bg: #f8f9f7; --diagram-ink: #172027; --diagram-accent: #4364ea; }
.diagram-funding { --diagram-bg: #f8f3ea; --diagram-ink: #202621; --diagram-accent: #b7784b; }
.funding-title { fill: var(--diagram-ink); font: 900 13px 'Arial Black', Arial, sans-serif; letter-spacing: -.5px; }
.funding-rule { stroke: #e4ddd3; stroke-width: .7; }
.funding-label { fill: #666960; font: 5px Georgia, serif; }
.funding-value { stroke: var(--diagram-ink); stroke-width: 3; }
.funding-line { stroke-width: 1.6; }
.funding-line-navy { stroke: #263e63; }
.funding-line-copper { stroke: #b7784b; }
.diagram .guide { fill: none; stroke: var(--diagram-ink); stroke-width: 1; opacity: .25; }
.diagram .accent { fill: none; stroke: var(--diagram-accent); stroke-width: 1.6; }
.diagram .fill { fill: var(--diagram-accent); }
.diagram .recipe-highlight { fill: #792b36; opacity: .1; }
.newsletter-blue { fill: #eaf0f8; }
.newsletter-amber { fill: #fbf0df; }
.newsletter-rose { fill: #faeaf0; }
.newsletter-line-blue { stroke: #345c96; stroke-width: 1.2; }
.newsletter-line-amber { stroke: #a46d22; stroke-width: 1.2; }
.newsletter-line-rose { stroke: #b45368; stroke-width: 1.2; }
.review-stage { fill: #fff; stroke: #dce3de; stroke-width: 1; }
.review-check { fill: none; stroke: #3f8158; stroke-width: 1.5; opacity: .7; }
.reader-cover { fill: #792b36; stroke: #d7b787; stroke-width: .6; }
.reader-page { fill: #f8f1e2; }
.reader-rule { fill: none; stroke: #806957; stroke-width: .7; opacity: .45; }
.reader-step { fill: none; stroke: #a36e4a; stroke-width: 1; }
.reader-title { fill: #322822; font-family: Georgia, serif; font-size: 16px; font-style: italic; }
.reader-title-small { font-size: 15px; }
.analytics-card { fill: #fff; stroke: #e9ecf1; stroke-width: 1; }
.chart-axis { fill: none; stroke: #e9ecf1; stroke-width: .8; }
.legend-blue { fill: none; stroke: #4169e1; stroke-width: 1.4; }
.legend-teal { fill: none; stroke: #579c91; stroke-width: 1.4; }
.legend-purple { fill: none; stroke: #9b7ec5; stroke-width: 1.4; }
.workbook { fill: #fbfbf8; stroke: #d8d8d2; stroke-width: .8; }
.workbook-header { fill: #253c34; }
.map-grid { fill: none; stroke: #d8d8d2; stroke-width: .8; }
.map-canvas { fill: #fbfbf8; stroke: #d8d8d2; stroke-width: .8; }
.map-pill { fill: #e9ece5; stroke: #d8d8d2; stroke-width: .5; }
.sector { fill: #fff; stroke: #d8d8d2; stroke-width: .7; }
.sector-header { fill: #171a20; }
.company-mark { fill: none; stroke: #171a20; stroke-width: 1.7; }
.search-modes { fill: #eef1ed; }
.search-mode-active { fill: #fff; }
.mode-mark { stroke: #172027; stroke-width: .8; opacity: .45; }
.search-title { fill: #4364ea; font-family: Georgia, serif; font-size: 17px; font-style: italic; letter-spacing: -.6px; }
.search-prompt { fill: #fff; stroke: #4364ea; stroke-width: 1.1; }
.query-line { fill: none; stroke: #172027; stroke-width: 1.3; }
.query-caret { stroke: #172027; stroke-width: 1; }
.search-submit { fill: #172027; }
.result-row { fill: #fff; stroke: #dce1e3; stroke-width: .6; }
.matched-row { fill: #eef2ff; stroke: #4364ea; stroke-width: .7; }
.result-mark { stroke: #172027; stroke-width: .8; opacity: .35; }
.diagram .anim-flow { stroke-dasharray: 3 17; animation: diagram-flow 3.8s linear infinite; }
.diagram .anim-chart { stroke-dasharray: 1; stroke-dashoffset: 0; animation: diagram-trace 5.5s cubic-bezier(.4,0,.2,1) infinite; }
.diagram .anim-pulse { transform-box: fill-box; transform-origin: center; animation: diagram-pulse 2.6s ease-in-out infinite; }
.diagram .anim-result { opacity: .8; animation: diagram-result 4.8s ease-in-out infinite; }
.diagram .anim-recipe { animation: recipe-step 5.4s steps(1, end) infinite; }
.diagram .anim-chapter { opacity: .3; animation: chapter-step 5.4s ease-in-out infinite; }
.diagram .anim-cluster { animation: cluster-signal 4.4s ease-in-out infinite; }
.diagram .anim-scan { animation: search-scan 4s cubic-bezier(.4,0,.2,1) infinite; opacity: .65; }
.diagram .anim-match { animation: diagram-result 4s ease-in-out -1.2s infinite; }
.diagram .anim-query { stroke-dasharray: 1; stroke-dashoffset: 0; animation: diagram-trace 4.8s cubic-bezier(.4,0,.2,1) infinite; }
.diagram .anim-caret { animation: query-caret 1s steps(1, end) infinite; }
.diagram .anim-stage { animation: review-stage 4.8s linear infinite; }
.diagram .anim-stage-check { animation: stage-check 4.8s linear infinite; }
@keyframes diagram-flow { to { stroke-dashoffset: -80; } }
@keyframes diagram-trace { 0%, 12% { stroke-dashoffset: 1; opacity: .3; } 60%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: .3; } }
@keyframes diagram-pulse { 0%, 100% { opacity: .45; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes diagram-result { 0%, 20%, 100% { opacity: .25; } 45%, 80% { opacity: 1; } }
@keyframes recipe-step { 0%, 24% { transform: translateY(0); } 25%, 49% { transform: translateY(14px); } 50%, 74% { transform: translateY(28px); } 75%, 100% { transform: translateY(42px); } }
@keyframes chapter-step { 0%, 24% { opacity: 1; } 25%, 100% { opacity: .2; } }
@keyframes cluster-signal { 0%, 100% { opacity: .4; } 45%, 70% { opacity: 1; } }
@keyframes search-scan { 0%, 10% { transform: translateX(0); opacity: 0; } 20% { opacity: .6; } 80% { transform: translateX(152px); opacity: .6; } 100% { transform: translateX(152px); opacity: 0; } }
@keyframes query-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes review-stage { 0%, 19% { fill: #e4f0e7; stroke: #3f8158; } 20%, 100% { fill: #fff; stroke: #dce3de; } }
@keyframes stage-check { 0%, 19% { opacity: 1; } 20%, 100% { opacity: .12; } }
.mode-hover .project-preview { display: none; }
.hover-hint { float: right; font-size: .75rem; font-weight: 400; }
.hover-preview { margin: 0; opacity: 0; transform: translateY(var(--preview-top, 0px)); transition: opacity 180ms ease; pointer-events: none; }
.hover-preview.is-visible { opacity: 1; transform: translateY(var(--preview-top, 0px)); }
.hover-preview-image { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hover-preview[data-project="cooking-companion"] img { object-position: center; }
.mode-hover .is-previewing h3 { color: var(--accent); }
.preview-toggle { display: none; font: inherit; font-size: .875rem; color: var(--muted); border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; padding: 6px 0; cursor: pointer; }
.preview-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.mode-above { --above-column: 330px; --above-preview-width: 560px; }
.mode-above h2 { margin-bottom: 10px; }
.mode-above .project-list li { padding-top: 6px; padding-bottom: 6px; }
.mode-above .project-list li:last-child { padding-bottom: 0; }
.mode-above .project-entry { grid-template-columns: minmax(0, 1fr); }
.mode-above .project-preview { display: none; }
.mode-above h3 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 6px; }
.mode-above .project-list p { line-height: 1.5; }
.mode-above .project-list .project-tech { font-size: .8125rem; line-height: 1.5; margin-top: 6px; }
.mode-above .is-previewing h3 { color: var(--accent); }
.above-preview { width: min(100%, var(--above-preview-width)); margin: 0 auto 18px; }
.above-preview-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #c8cdc3; border-radius: 7px; background: #fff; box-shadow: 0 2px 5px rgb(37 40 35 / 5%), 0 10px 24px rgb(37 40 35 / 10%); }
.above-preview-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--crop-position); transform: scale(var(--crop-zoom)); transform-origin: var(--crop-position); opacity: 0; transition: opacity 200ms ease; }
.above-preview-image[data-project="missed-deal-review"] { --crop-zoom: 1; --crop-position: 50% 50%; }
.above-preview-image[data-project="cooking-companion"] { --crop-zoom: 1; --crop-position: 50% 50%; }
.above-preview-image[data-project="startup-signals"] { --crop-zoom: 1; --crop-position: 50% 75.8%; }
.above-preview-image[data-project="market-mapper"] { --crop-zoom: 1; --crop-position: 50% 55.12%; }
.above-preview-image[data-project="starthere"] { --crop-zoom: 1; --crop-position: 50% 50%; }
.above-preview-image[data-project="funding-the-future"] { --crop-zoom: 1; --crop-position: 50% 50%; }
.above-preview-image.is-current { opacity: 1; }
.above-preview-diagram { position: absolute; inset: 0; display: block; background: var(--diagram-bg); opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 200ms; }
.above-preview-diagram.is-current { opacity: 1; visibility: visible; }
.above-preview-diagram.diagram svg * { animation-play-state: paused; }
.above-preview-diagram.is-current svg * { animation-play-state: running; }
.above-preview.motion-paused .above-preview-diagram svg * { animation-play-state: paused; }
.above-preview-button { display: none; font: inherit; font-size: .875rem; color: var(--muted); border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; min-height: 44px; cursor: pointer; }
.above-preview-button[aria-pressed="true"] { color: var(--accent); }
.above-preview-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 999px) {
  body { display: block; }
  .portfolio { display: block; max-width: 640px; padding: 34px 28px; }
  .profile { padding-top: 0; margin-bottom: 38px; }
  h1 { font-size: 5rem; margin-bottom: 18px; }
  .bio { max-width: 340px; margin-bottom: 18px; }
  .project-list li { padding-top: 18px; padding-bottom: 18px; }
  h3 { font-size: 1.75rem; }
  .project-entry { grid-template-columns: minmax(0, 1fr) 96px; gap: 18px; }
  .project-preview { width: 96px; height: 66px; }
  :is(.mode-original, .mode-animated, .mode-hover) { --project-preview-width: 120px; --project-preview-height: 70px; --project-preview-gap: 18px; }
  .mode-above .project-list li { padding-top: 14px; padding-bottom: 14px; }
  .mode-above .project-list li:last-child { padding-bottom: 0; }
}
@media (min-width: 1000px) {
  .mode-above .project-copy { display: grid; grid-template-columns: var(--above-column) minmax(0, 1fr); gap: 6px 24px; }
  .mode-above h3 { grid-column: 1; grid-row: 1; margin: 0; }
  .mode-above .project-copy > p:not(.project-tech) { grid-column: 2; grid-row: 1 / span 2; align-self: start; padding-top: 4px; }
  .mode-above .project-list .project-tech { grid-column: 1; grid-row: 2; margin: 0; }
  .mode-hover main { display: grid; grid-template-columns: minmax(0, 1fr) var(--project-preview-width); column-gap: var(--project-preview-gap); align-items: start; }
  .mode-hover h2 { grid-column: 1 / -1; }
  .mode-hover .project-list { grid-column: 1 / -1; grid-row: 2; }
  .mode-hover .hover-preview { grid-column: 2; grid-row: 2; width: min(280px, calc(var(--project-preview-width) + max(0px, (100vw - 1140px) / 2))); align-self: start; }
}
@media (min-width: 1000px) and (hover: hover) {
  /* Keep the row geometry shared with the other views, but leave the
     floating preview column clear of dividers and keyboard outlines. */
  .mode-hover .project-list li { position: relative; border-bottom-color: transparent; }
  .mode-hover .project-list li:not(:last-child)::after { content: ''; position: absolute; left: 0; bottom: -1px; width: calc(100% - var(--project-preview-width) - var(--project-preview-gap)); height: 1px; background: var(--line); pointer-events: none; }
  .mode-hover .project-entry:focus-visible { outline: none; }
  .mode-hover .project-entry:focus-visible .project-copy { outline: 2px solid var(--accent); outline-offset: 5px; }
}
@media (max-width: 999px) {
  .mode-above .project-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding-top: 14px; padding-bottom: 14px; }
  .mode-above .project-list li:last-child { padding-bottom: 0; }
  .mode-above .above-preview { position: sticky; top: 0; z-index: 1; width: 100%; padding: 8px 0; margin-bottom: 10px; background: var(--paper); }
  .mode-above .above-preview-frame { max-width: 520px; margin-inline: auto; }
  .mode-above .project-entry { scroll-margin-top: calc(var(--above-stage-height, 150px) + 16px); }
  .mode-above .above-preview-button { display: inline-block; }
}
/* Inline previews expand only when requested on narrow or touch screens. */
@media (max-width: 999px), (hover: none) {
  .mode-hover .project-list li { position: relative; }
  .mode-hover .hover-preview, .mode-hover .hover-hint { display: none; }
  .mode-hover .preview-toggle { display: grid; place-items: center; position: absolute; top: 18px; right: 0; width: var(--project-preview-width); min-height: 44px; margin: 0; }
  .mode-hover .is-previewing .project-entry { row-gap: 16px; }
  .mode-hover .is-previewing .project-preview { display: block; grid-column: 1 / -1; grid-row: 2; width: min(100%, 360px); height: auto; aspect-ratio: 1.5; margin-top: 0; }
}
@media (min-width: 1000px) and (hover: none) {
  .mode-hover .preview-toggle { top: 6px; }
}
@media (max-width: 599px) {
  .mode-above .project-list li { position: relative; display: block; }
  .mode-above .project-list .project-tech { display: flex; align-items: center; min-height: 44px; padding-right: 76px; }
  .mode-above .above-preview-button { position: absolute; right: 0; bottom: 14px; }
  .mode-above .project-list li:last-child .above-preview-button { bottom: 0; }
}
@media (max-width: 420px) {
  .portfolio { padding-left: 22px; padding-right: 22px; }
  .project-entry { grid-template-columns: minmax(0, 1fr) 82px; gap: 14px; }
  .project-preview { width: 82px; height: 60px; }
  h3 { font-size: 1.5rem; }
  :is(.mode-original, .mode-animated, .mode-hover) { --project-preview-width: 92px; --project-preview-height: 54px; --project-preview-gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mode-animated .diagram svg:not(.study-motion) * { animation: none; }
  .mode-hover-play .diagram svg:not(.study-motion) * { animation: none; }
  .hover-preview { transition: none; }
  :is(.mode-original, .mode-animated) .project-list > li { transition: none; }
  .above-preview-image { transition: none; }
  .above-preview-diagram { transition: none; }
  .mode-above-animated .diagram svg:not(.study-motion) * { animation: none; }
}
@media (min-width: 1000px) and (hover: none) {
  .mode-above .project-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
  .above-preview-button { display: inline-block; }
}

/* Keep the preferred middle desktop layout independent of viewport height. */
@media (min-width: 1000px) {
  .portfolio { padding-top: 24px; padding-bottom: 24px; }
  :is(.mode-original, .mode-animated, .mode-hover) {
    --project-preview-width: 160px;
    --project-preview-height: 92px;
  }
  :is(.mode-original, .mode-animated, .mode-hover) h3 { font-size: 1.75rem; margin-bottom: 6px; }
  :is(.mode-original, .mode-animated, .mode-hover) .project-list > li { padding-top: 8px; padding-bottom: 8px; }
  :is(.mode-original, .mode-animated, .mode-hover) .project-list > li:last-child { padding-bottom: 0; }
}

/* New product demos retain a useful final composition with reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .diagram .product-motion .first,
  .diagram .product-motion .turn-sheet { display: none; }
}

/* Keep a legible completed illustration when reduced motion is requested. */
@media (prefers-reduced-motion: reduce) {
  .diagram .study-motion * {
    animation-play-state: paused !important;
    animation-delay: -5.5s !important;
  }
}

/* Show the completed recipe before the page turn for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .diagram .study-motion .kb-spread * { animation-delay: -4.2s !important; }
}

/* Keep row geometry fluid; only the sidebar-to-header layout needs a breakpoint. */
html { scrollbar-gutter: stable; }
:is(.mode-original, .mode-animated, .mode-hover) {
  --project-preview-width: clamp(92px, calc(10vw + 60px), 160px);
  --project-preview-height: calc(var(--project-preview-width) * .5625);
  --project-preview-gap: clamp(14px, calc(10px + 1vw), 20px);
}
:is(.mode-original, .mode-animated, .mode-hover) .portfolio {
  padding-inline: clamp(22px, calc(12px + 2.5vw), 48px);
  padding-block: clamp(24px, calc(40px - 1.111vw), 36px);
}
:is(.mode-original, .mode-animated, .mode-hover) h1 {
  font-size: clamp(80px, calc(64px + 2vw), 92.8px);
}
:is(.mode-original, .mode-animated, .mode-hover) h3 {
  font-size: clamp(24px, calc(21.333px + .8333vw), 28px);
  margin-bottom: 6px;
}
:is(.mode-original, .mode-animated, .mode-hover) .project-list > li {
  padding-block: clamp(8px, calc(24px - 1.3333vw), 18px);
}
:is(.mode-original, .mode-animated, .mode-hover) .project-list > li:last-child { padding-bottom: 0; }
.mode-above .above-preview-frame { max-width: min(560px, 80svh); margin-inline: auto; }
.mode-above .project-list > li { padding-block: clamp(6px, calc(22px - 1.6vw), 14px); }
.mode-above .project-list > li:last-child { padding-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .diagram .study-motion[data-motion="market-mapper"] * { animation-delay: -3.2s !important; }
  .diagram .study-motion[data-motion="funding-the-future"] * { animation-delay: -3.8s !important; }
  .diagram .study-motion[data-motion="funding-the-future"] [class^="fund-dot-"] { animation: none !important; opacity: 0; }
}
