:root {
  color-scheme: light;
  --bg: #f3f6fa;
  --bg-2: #fbfcfe;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #171b22;
  --muted: #66717e;
  --line: rgba(23, 27, 34, 0.1);
  --line-strong: rgba(23, 27, 34, 0.16);
  --border: rgba(23, 27, 34, 0.1);
  --accent: #64748b;
  --accent-soft: rgba(100, 116, 139, 0.12);
  --shadow: 0 20px 60px rgba(34, 47, 62, 0.06);
  --radius: 0px;
  --radius-sm: 0px;
  --ambient-dx: 0px;
  --ambient-dy: 0px;
  --ambient-energy: 0;
  --cursor-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 25 25'%3E%3Cpath d='M12.5 2.5v20M2.5 12.5h20' stroke='%23171b22' stroke-width='1.15' stroke-linecap='square'/%3E%3Ccircle cx='12.5' cy='12.5' r='1.15' fill='%23171b22'/%3E%3C/svg%3E") 12 12;
  --cursor-cross-rainbow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'%3E%3Cpath d='M5 17.5h6.4' stroke='%23ef60a8' stroke-width='1.35' stroke-linecap='square' opacity='.72'/%3E%3Cpath d='M11.4 17.5h6.1' stroke='%23f6ca54' stroke-width='1.35' stroke-linecap='square' opacity='.68'/%3E%3Cpath d='M17.5 17.5h6.1' stroke='%2352c47e' stroke-width='1.35' stroke-linecap='square' opacity='.66'/%3E%3Cpath d='M23.6 17.5H30' stroke='%235d9fed' stroke-width='1.35' stroke-linecap='square' opacity='.72'/%3E%3Cpath d='M17.5 5v6.4' stroke='%235d9fed' stroke-width='1.35' stroke-linecap='square' opacity='.72'/%3E%3Cpath d='M17.5 11.4v6.1' stroke='%2352c47e' stroke-width='1.35' stroke-linecap='square' opacity='.66'/%3E%3Cpath d='M17.5 17.5v6.1' stroke='%23f6ca54' stroke-width='1.35' stroke-linecap='square' opacity='.68'/%3E%3Cpath d='M17.5 23.6V30' stroke='%23ef60a8' stroke-width='1.35' stroke-linecap='square' opacity='.72'/%3E%3Ctext x='17.5' y='20.3' text-anchor='middle' font-family='Georgia, serif' font-size='8.5' fill='%23505e70' opacity='.9'%3E0%3C/text%3E%3C/svg%3E") 17 17;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-x: hidden;
  cursor: var(--cursor-cross), crosshair;
}

::selection {
  background: rgba(100, 116, 139, 0.22);
  color: var(--text);
}

::-moz-selection {
  background: rgba(100, 116, 139, 0.22);
  color: var(--text);
}

.cursor-cross {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: normal;
  will-change: transform, width, height, opacity;
  transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0) translate(-50%, -50%);
  transition:
    width 180ms ease,
    height 180ms ease,
    opacity 180ms ease,
    filter 180ms ease;
}

.cursor-zero {
  position: absolute;
  left: 50%;
  top: 50%;
  color: rgba(80, 94, 112, 0.78);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -52%);
  transition: opacity 160ms ease;
}

.cursor-cross::before,
.cursor-cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(23, 27, 34, 0.58);
  transform: translate(-50%, -50%);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.cursor-cross::before {
  width: 100%;
  height: 1px;
}

.cursor-cross::after {
  width: 1px;
  height: 100%;
}

.has-cursor-cross .cursor-cross {
  opacity: 0.58;
}

.is-cursor-clickable .cursor-cross {
  width: 46px;
  height: 46px;
  opacity: 0.98;
  filter: saturate(1.16);
}

.is-cursor-clickable .cursor-cross::before {
  background:
    linear-gradient(90deg, rgba(239, 96, 168, 0), rgba(239, 96, 168, 0.72), rgba(246, 202, 84, 0.66), rgba(82, 196, 126, 0.64), rgba(93, 159, 237, 0.7), rgba(93, 159, 237, 0)),
    linear-gradient(90deg, rgba(80, 94, 112, 0.18), rgba(80, 94, 112, 0.18));
  background-size: 220% 100%, 100% 100%;
  background-position: 50% 0, 0 0;
  height: 1.6px;
  box-shadow:
    0 0 8px rgba(239, 96, 168, 0.18),
    0 0 13px rgba(93, 159, 237, 0.18);
  animation: cursor-colour-out-horizontal 1.65s ease-in-out infinite;
}

.is-cursor-clickable .cursor-cross::after {
  background:
    linear-gradient(180deg, rgba(93, 159, 237, 0), rgba(93, 159, 237, 0.7), rgba(82, 196, 126, 0.64), rgba(246, 202, 84, 0.66), rgba(239, 96, 168, 0.72), rgba(239, 96, 168, 0)),
    linear-gradient(180deg, rgba(80, 94, 112, 0.18), rgba(80, 94, 112, 0.18));
  background-size: 100% 220%, 100% 100%;
  background-position: 0 50%, 0 0;
  width: 1.6px;
  box-shadow:
    0 0 8px rgba(82, 196, 126, 0.18),
    0 0 13px rgba(246, 202, 84, 0.16);
  animation: cursor-colour-out-vertical 1.65s ease-in-out infinite;
}

.is-cursor-clickable .cursor-zero {
  opacity: 0.9;
}

.is-cursor-pressing .cursor-cross {
  width: 30px;
  height: 30px;
  opacity: 0.95;
}

@keyframes cursor-orbit {
  0%,
  100% {
    transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0) translate(-50%, -50%) rotate(0deg) scale(1);
  }

  42% {
    transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0) translate(-50%, -50%) rotate(6deg) scale(1.06);
  }

  68% {
    transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0) translate(-50%, -50%) rotate(-4deg) scale(0.98);
  }
}

@keyframes cursor-colour-out-horizontal {
  0% {
    background-position: 50% 0, 0 0;
  }

  50% {
    background-position: 100% 0, 0 0;
  }

  100% {
    background-position: 50% 0, 0 0;
  }
}

@keyframes cursor-colour-out-vertical {
  0% {
    background-position: 0 50%, 0 0;
  }

  50% {
    background-position: 0 100%, 0 0;
  }

  100% {
    background-position: 0 50%, 0 0;
  }
}

@media (min-width: 721px) {
  .has-cursor-cross-support a,
  .has-cursor-cross-support button,
  .has-cursor-cross-support summary,
  .has-cursor-cross-support input,
  .has-cursor-cross-support select,
  .has-cursor-cross-support textarea,
  .has-cursor-cross-support label,
  .has-cursor-cross-support [role="button"],
  .has-cursor-cross-support [tabindex]:not([tabindex="-1"]),
  .has-cursor-cross-support .project-card,
  .has-cursor-cross-support .company-tile,
  .has-cursor-cross-support .route-card,
  .has-cursor-cross-support .contact-link,
  .has-cursor-cross-support .quick-link,
  .has-cursor-cross-support .project-adjacent-card,
  .has-cursor-cross-support .project-return-card,
  .has-cursor-cross-support .external-link-card,
  .has-cursor-cross-support .source-card,
  .has-cursor-cross-support .bookmark.source,
  .has-cursor-cross-support [onclick] {
    cursor: none;
  }
}

@media (max-width: 720px) {
  .cursor-cross {
    display: none;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 36%),
    radial-gradient(circle at 82% 10%, rgba(160, 175, 194, 0.14), transparent 28%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

body::before {
  content: "";
  position: fixed;
  inset: -15%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(150, 168, 189, 0.16), transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.72), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(170, 184, 199, 0.1), transparent 30%);
  filter: blur(46px);
  opacity: 0.9;
  animation: drift 24s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(100, 116, 139, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(100, 116, 139, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 18%, rgba(0, 0, 0, 0.52), transparent 62%);
  opacity: 0.5;
  transform: translate3d(0, 0, 0);
  animation: field-shift 42s linear infinite;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: var(--cursor-cross), pointer;
}

a,
button,
summary,
input,
select,
textarea,
label,
[role="button"],
[tabindex]:not([tabindex="-1"]),
.project-card,
.company-tile,
.route-card,
.contact-link,
.quick-link,
.project-adjacent-card,
.project-return-card,
.external-link-card,
.source-card,
.bookmark.source,
[onclick] {
  cursor: var(--cursor-cross-rainbow), pointer;
}

img {
  max-width: 100%;
  display: block;
}

#app {
  position: relative;
  z-index: 1;
}

.shell {
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

body[data-page="home"] .shell,
body[data-page="portfolio"] .shell,
body[data-page="resume"] .shell,
body[data-page="experiences"] .shell,
body[data-page="project"] .shell,
body[data-page="company"] .shell {
  position: relative;
  isolation: isolate;
}

body[data-page="home"] .shell::before,
body[data-page="home"] .shell::after,
body[data-page="portfolio"] .shell::before,
body[data-page="portfolio"] .shell::after,
body[data-page="resume"] .shell::before,
body[data-page="resume"] .shell::after,
body[data-page="experiences"] .shell::before,
body[data-page="experiences"] .shell::after,
body[data-page="project"] .shell::before,
body[data-page="project"] .shell::after,
body[data-page="company"] .shell::before,
body[data-page="company"] .shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body[data-page="home"] .shell::before,
body[data-page="portfolio"] .shell::before,
body[data-page="resume"] .shell::before,
body[data-page="experiences"] .shell::before,
body[data-page="project"] .shell::before,
body[data-page="company"] .shell::before {
  background:
    linear-gradient(90deg, rgba(100, 116, 139, 0.074) 1px, transparent 1px),
    linear-gradient(180deg, rgba(100, 116, 139, 0.056) 1px, transparent 1px),
    repeating-linear-gradient(165deg, transparent 0 34px, rgba(100, 116, 139, 0.05) 35px, transparent 37px);
  background-size: 52px 52px, 52px 52px, 100% 100%;
  background-position:
    calc(var(--ambient-dx) * 0.25) 0,
    0 calc(var(--ambient-dy) * 0.25),
    calc(var(--ambient-dx) * 0.38) calc(var(--ambient-dy) * 0.16);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.58) 12%, #000 34%, #000 86%, transparent 100%);
  opacity: calc(0.76 + var(--ambient-energy) * 0.11);
  transform: translate3d(calc(var(--ambient-dx) * 0.12), calc(var(--ambient-dy) * 0.08), 0);
  animation: page-field-drift 24s ease-in-out infinite alternate;
  transition: opacity 180ms ease;
}

body[data-page="home"] .shell::after,
body[data-page="portfolio"] .shell::after,
body[data-page="resume"] .shell::after,
body[data-page="experiences"] .shell::after,
body[data-page="project"] .shell::after,
body[data-page="company"] .shell::after {
  background:
    linear-gradient(105deg, transparent 18%, rgba(23, 27, 34, 0.055) 48%, transparent 72%);
  mix-blend-mode: multiply;
  opacity: calc(0.2 + var(--ambient-energy) * 0.06);
  transform: translate3d(calc(var(--ambient-dx) * -0.08), calc(var(--ambient-dy) * 0.05), 0);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.46) 20%, #000 72%, transparent 100%);
  transition: opacity 180ms ease;
}

body[data-page="home"] main,
body[data-page="portfolio"] main,
body[data-page="resume"] main,
body[data-page="experiences"] main,
body[data-page="project"] main,
body[data-page="company"] main {
  position: relative;
  z-index: 2;
}

body[data-page="home"] .topbar,
body[data-page="portfolio"] .topbar,
body[data-page="resume"] .topbar,
body[data-page="experiences"] .topbar,
body[data-page="project"] .topbar,
body[data-page="company"] .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(390px, auto);
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 14px 18px;
  margin-bottom: 28px;
  background: rgba(248, 250, 252, 0.84);
  border: 1px solid rgba(23, 27, 34, 0.08);
  border-radius: 0;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(52, 44, 36, 0.05);
}

@media (min-width: 721px) {
  .topbar {
    position: sticky;
    top: 0;
  }

  .brand {
    position: relative;
    top: auto;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark,
.nav-number,
.section-number,
.project-return-number {
  --cross-size: 20px;
  --cross-line: rgba(80, 94, 112, 0.34);
  position: relative;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(80, 94, 112, 0.78);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.brand-mark::before,
.brand-mark::after,
.nav-number::before,
.nav-number::after,
.section-number::before,
.section-number::after,
.project-return-number::before,
.project-return-number::after {
  content: "";
  position: absolute;
  background: var(--cross-line);
  pointer-events: none;
}

.brand-mark::before,
.nav-number::before,
.section-number::before,
.project-return-number::before {
  width: 1px;
  height: var(--cross-size);
}

.brand-mark::after,
.nav-number::after,
.section-number::after,
.project-return-number::after {
  width: var(--cross-size);
  height: 1px;
}

.brand-mark {
  --cross-size: 16px;
  width: 22px;
  height: 22px;
  font-size: 0.54rem;
}

.brand-mark::selection {
  background: transparent;
}

.brand-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.28rem, 1.8vw, 1.58rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: rgba(23, 27, 34, 0.88);
}

.topnav {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 12px;
  justify-self: end;
  width: min(100%, 430px);
}

.topnav a {
  position: relative;
  display: inline-grid;
  grid-template-columns: 24px auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 7px 9px;
  border-radius: 0;
  isolation: isolate;
  overflow: hidden;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-number {
  --cross-size: 16px;
  width: 22px;
  height: 22px;
  font-size: 0.54rem;
}

.topnav a:hover {
  background: rgba(100, 116, 139, 0.09);
  color: var(--text);
}

.topnav a.is-active {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.08);
}

main {
  display: grid;
  gap: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: 14px 0 8px;
}

.hero-card,
.section,
.work-item,
.project-card,
.education-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  position: relative;
  overflow: visible;
  min-width: 0;
  border-radius: 0;
  padding: 22px 0 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-copy::before {
  content: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-number,
.kicker,
.stat-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-number {
  --cross-size: 16px;
  width: 22px;
  height: 22px;
  color: rgba(80, 94, 112, 0.78);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  margin-top: 12px;
  font-size: clamp(3.1rem, 7vw, 5.4rem);
  line-height: 0.9;
}

.home-title {
  max-width: none;
  font-size: clamp(3.4rem, 6vw, 5rem);
  line-height: 0.92;
  white-space: nowrap;
}

.home-title > span {
  display: inline;
}

.unusual-word {
  display: inline-block;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: -0.045em;
  transform: translateY(0.006em);
  transform-origin: 45% 65%;
}

.unusual-letter {
  display: inline-block;
}

.unusual-letter-up {
  transform: translateY(-0.08em);
}

.unusual-letter-down {
  transform: translateY(-0.14em);
}

.lede {
  margin: 18px 0 0;
  max-width: 36rem;
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  color: rgba(23, 27, 34, 0.82);
  overflow-wrap: break-word;
}

.hero-copy .lede {
  display: block;
  width: 100%;
  max-width: min(100%, 82rem);
}

.page-header .lede {
  width: 100%;
  max-width: none;
}

.intro {
  margin: 14px 0 0;
  max-width: 44rem;
  font-size: 1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill,
.chip,
.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.pill {
  padding: 10px 12px;
  border: 1px solid rgba(23, 27, 34, 0.12);
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.94rem;
}

.pill:hover,
.quick-link:hover,
.chip:hover {
  transform: translateY(-1px);
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.22);
}

.hero-card {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.6fr);
  gap: 24px;
  align-items: start;
  padding: 18px 0 8px;
}

body[data-page="project"] .page-header {
  grid-template-columns: 1fr;
}

body[data-page="project"] .page-header > div,
body[data-page="project"] .page-header .lede,
body[data-page="project"] .page-title {
  width: 100%;
  max-width: none;
}

body[data-page="project"] .page-aside {
  width: min(100%, 34rem);
}

.page-header > *,
.section,
.article-block,
.raw-article {
  min-width: 0;
}

.page-header > div:only-child {
  grid-column: 1 / -1;
}

.page-header > div:only-child .lede {
  width: 100%;
  max-width: none;
}

.project-heading-visual,
.project-hero-image {
  width: 100%;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
  overflow: hidden;
}

.project-heading-visual img,
.project-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
  object-fit: cover;
}

.project-heading-visual.is-icon {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(226, 232, 240, 0.54));
}

.project-heading-visual.is-icon img {
  width: 38px;
  height: 38px;
  aspect-ratio: 1;
  object-fit: contain;
}

.project-heading-visual.is-icon span {
  font-size: 2.4rem;
  line-height: 1;
}

.page-title {
  margin-top: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.page-aside,
.route-card,
.contact-block {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.company-tile,
.project-card,
.raw-export-section,
.raw-article > *,
.work-item,
.experience-feature,
.unusual-item,
.context-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}

.topbar,
.page-header,
.hero,
.route-card {
  content-visibility: visible;
}

.page-aside {
  border-radius: 0;
  padding: 24px 22px;
}

.page-aside strong {
  display: block;
  margin: 8px 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
}

.page-aside span,
.page-aside p {
  color: var(--muted);
  margin: 0;
}

.project-detail {
  display: grid;
  gap: 14px;
  max-width: 42rem;
}

.project-detail p {
  margin: 0;
  color: var(--muted);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.65fr);
  gap: 14px;
  align-items: start;
}

.article-block {
  display: grid;
  gap: 14px;
}

.article-block > p {
  margin: 0;
  color: var(--muted);
}

.inline-media {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.inline-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.inline-figure img {
  width: 100%;
  display: block;
}

.board-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.board-title {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
}

.board-kicker {
  margin: 6px 0 0;
  color: var(--muted);
}

.board-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  color: var(--muted);
  font-size: 0.92rem;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list.compact {
  margin-top: 8px;
}

.archived-link {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.link-row span:last-child {
  color: var(--muted);
}

.project-facts,
.context-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: 0;
  padding: 22px;
}

.project-facts {
  display: grid;
  gap: 10px;
}

.project-facts p {
  margin: 0;
}

.project-facts strong {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.context-card h3 {
  margin: 4px 0 8px;
  font-size: 2rem;
}

.context-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.context-card.is-unboxed {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  overflow: visible;
}

.context-card.is-unboxed::before,
.context-card.is-unboxed::after {
  display: none;
}

.company-context-video {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.58)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.1), transparent 36%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.company-context-video div {
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.company-context-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.company-context-video figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.company-context-video a {
  color: var(--text);
  text-decoration-color: rgba(100, 116, 139, 0.35);
  text-underline-offset: 0.18em;
}

.project-return-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.project-adjacent-section {
  display: grid;
  gap: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.project-adjacent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-adjacent-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  min-height: 184px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.58)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.1), transparent 36%);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, transform 180ms ease;
}

.project-adjacent-card > * {
  position: relative;
  z-index: 1;
}

.project-adjacent-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 18%, rgba(100, 116, 139, 0.048) 44%, transparent 68%),
    linear-gradient(90deg, rgba(100, 116, 139, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(100, 116, 139, 0.026) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  opacity: 0.34;
  transform: translate3d(-16%, 0, 0);
  animation: card-glide 34s ease-in-out infinite alternate;
}

.project-adjacent-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.22), transparent);
  opacity: 0.42;
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 220ms ease, opacity 220ms ease;
}

.project-adjacent-card:hover {
  border-color: rgba(100, 116, 139, 0.34);
  transform: translateY(-1px);
}

.project-adjacent-card:hover::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.project-adjacent-number {
  --cross-size: 20px;
  grid-row: 1 / span 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1;
}

.project-adjacent-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
}

.project-adjacent-card strong {
  max-width: 28rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 0.96;
}

.project-adjacent-meta,
.project-adjacent-summary {
  color: var(--muted);
}

.project-adjacent-meta {
  font-size: 0.86rem;
}

.project-adjacent-summary {
  max-width: 34rem;
  margin-top: 6px;
}

.project-return-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.58)),
    linear-gradient(90deg, rgba(100, 116, 139, 0.035) 1px, transparent 1px);
  background-size: auto, 34px 34px;
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.project-return-link:hover {
  border-color: rgba(100, 116, 139, 0.34);
  transform: translateY(-1px);
}

.project-return-number {
  --cross-size: 20px;
  width: 34px;
  height: 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.78rem;
}

.hero-stat {
  padding: 18px 18px 16px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(23, 27, 34, 0.08);
}

.hero-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 700;
}

.hero-stat span:last-child {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.93rem;
}

.section {
  border-radius: 0;
  padding: 28px 28px 26px;
}

body[data-page="home"] .section {
  position: relative;
  overflow: hidden;
  padding: 34px 36px 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(248, 250, 252, 0.64)),
    radial-gradient(circle at 88% 12%, rgba(148, 163, 184, 0.1), transparent 30%);
}

body[data-page="home"] .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 116, 139, 0.24), transparent);
  animation: line-breathe 16s ease-in-out infinite alternate;
}

body[data-page="home"] .section::after {
  content: none;
}

body[data-page="home"] .section.home-run {
  overflow: visible;
  padding: 12px 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-page="home"] .section.home-run::before,
body[data-page="home"] .section.home-run::after {
  display: none;
}

.home-run-stage {
  position: relative;
  isolation: isolate;
  min-height: clamp(680px, 76vh, 920px);
  background: rgba(255, 255, 255, 0.001);
}

.home-wave-field {
  --wave-x: 50%;
  --wave-y: 50%;
  --wave-energy: 0;
  --wave-dx: 0px;
  --wave-dy: 0px;
  --wave-tilt: 0deg;
  position: absolute;
  inset: clamp(-420px, -44vh, -220px) -56px 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(80, 94, 112, 0.064) 0 1px, transparent 1px 42px);
  background-size: 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.48) 18%, #000 36%, #000 91%, transparent 100%);
  opacity: calc(0.78 + var(--wave-energy) * 0.06);
  transition: opacity 180ms ease;
}

.home-wave-field.is-active {
  opacity: 0.92;
}

.home-run-stage:hover .home-wave-field,
.home-run-stage:focus-within .home-wave-field {
  --wave-energy: 1.4;
  opacity: 0.94;
}

.home-wave-field::before,
.home-wave-field::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-wave-field::before {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 41px,
      rgba(80, 94, 112, calc(0.03 + var(--wave-energy) * 0.018)) 41px 42px
    );
  opacity: calc(0.28 + var(--wave-energy) * 0.08);
  transform: translate3d(0, 0, 0);
  transition: opacity 180ms ease;
}

.home-wave-field::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 18%, transparent 58%, rgba(80, 94, 112, 0.055) 78%, rgba(80, 94, 112, 0.1));
  mix-blend-mode: multiply;
  opacity: 0.62;
  transform: translate3d(0, 0, 0);
  transition: opacity 180ms ease;
}

.home-wave-field .particles-js-canvas-el {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.95;
}

.home-run-head {
  margin-bottom: 22px;
}

.home-run-head h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.home-run-head p {
  max-width: 45rem;
  margin: 12px 0 0;
  color: var(--muted);
}

.section.companies-section {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 8px 0 0;
}

.section.projects-section {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 8px 0 0;
}

.section.unboxed-section {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 8px 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 20px;
}

.section-head .section-number {
  --cross-size: 16px;
  width: 22px;
  height: 22px;
  font-size: 0.54rem;
  transform: none;
}

body[data-page="home"] .section-head {
  gap: 18px;
  margin-bottom: 26px;
}

body[data-page="home"] .section-head h2 {
  letter-spacing: -0.02em;
}

body[data-page="home"] .section-head p:last-child {
  max-width: 45rem;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 0.95;
  margin-top: 4px;
}

.section-head p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 54rem;
  overflow-wrap: break-word;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-grid.full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.company-tile {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.company-tile-image {
  margin: -10px -10px 0;
  border: 1px solid var(--line);
  background: rgba(226, 232, 240, 0.45);
  overflow: hidden;
}

.company-tile-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6.5;
  height: auto;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
}

.company-tile-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.company-tile h3 {
  margin-top: 6px;
  font-size: 2.1rem;
  line-height: 1;
}

.company-tile p {
  margin: 10px 0 0;
  color: var(--muted);
}

.company-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.company-project-list {
  display: grid;
  gap: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.company-project-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid rgba(23, 27, 34, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.company-project-link:last-child {
  border-bottom: 0;
}

.company-project-link:hover {
  transform: translateX(2px);
}

.company-project-thumb {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.82);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.company-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.company-project-thumb.is-icon {
  font-size: 1.25rem;
}

.company-project-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.company-project-copy strong {
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.company-project-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 27, 34, 0.08);
  background: rgba(100, 116, 139, 0.12);
}

.route-card {
  border-radius: 0;
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 24px 24px 26px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.7));
  box-shadow: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.route-card > * {
  position: relative;
  z-index: 1;
}

.route-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 18%, rgba(100, 116, 139, 0.055) 44%, transparent 68%),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.68), transparent 26%);
  opacity: 0.42;
  transform: translate3d(-16%, 0, 0);
  animation: card-glide 32s ease-in-out infinite alternate;
}

.route-card:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.82));
}

.route-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.26), transparent);
  transform: scaleX(0.24);
  transform-origin: left;
  opacity: 0.55;
  transition: transform 220ms ease, opacity 220ms ease;
}

.route-card:hover::after {
  transform: scaleX(1);
  opacity: 0.9;
}

.route-card h3 {
  font-size: 1.7rem;
  margin-top: 6px;
}

.route-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.route-grid.route-run {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.route-grid.route-run::before {
  content: "";
  position: absolute;
  inset: -42px -28px -52px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(100, 116, 139, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(100, 116, 139, 0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 74%, transparent 100%);
  opacity: 0.2;
  transform: translate3d(0, 0, 0);
  animation: route-field 7s steps(7, end) infinite;
  transition: opacity 160ms ease;
}

.route-grid.route-run:hover::before,
.route-grid.route-run:focus-within::before {
  opacity: 0.34;
}

.route-run .route-card {
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  min-height: 216px;
  padding: 20px;
  border: 1px solid rgba(23, 27, 34, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.86)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.08), transparent 36%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}

.route-run .route-card::before {
  opacity: 0.18;
  background:
    linear-gradient(115deg, transparent 18%, rgba(100, 116, 139, 0.035) 44%, transparent 68%),
    linear-gradient(90deg, rgba(100, 116, 139, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(100, 116, 139, 0.02) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}

.route-run .route-card::after {
  left: 20px;
  right: 20px;
  bottom: 18px;
  width: auto;
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.24), transparent);
  transform: scaleX(0.22);
}

.route-run .route-card:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.1), transparent 36%);
}

.route-run .route-card:hover::after {
  transform: scaleX(1);
}

.route-card .section-number {
  --cross-size: 20px;
  width: 34px;
  height: 34px;
  margin: -2px 0 2px;
}

.route-run .route-card .kicker,
.route-run .route-card h3,
.route-run .route-card p:last-child {
  grid-column: 1;
}

.route-run .route-card .kicker {
  margin-top: 0;
}

.route-run .route-card h3 {
  max-width: 20rem;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 0.95;
  margin-top: 4px;
}

.route-run .route-card p:last-child {
  max-width: 20rem;
  margin-top: 8px;
}

.company-tile,
.project-card,
.education-card,
.work-item,
.contact-block,
.page-aside,
.link-row,
.project-facts,
.context-card,
.experience-feature,
.unusual-item {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.58)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.1), transparent 36%);
}

.company-tile > *,
.project-card > *,
.education-card > *,
.work-item > *,
.contact-block > *,
.page-aside > *,
.link-row > *,
.project-facts > *,
.context-card > *,
.experience-feature > *,
.unusual-item > * {
  position: relative;
  z-index: 1;
}

.company-tile::before,
.project-card::before,
.education-card::before,
.work-item::before,
.contact-block::before,
.page-aside::before,
.link-row::before,
.project-facts::before,
.context-card::before,
.experience-feature::before,
.unusual-item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 18%, rgba(100, 116, 139, 0.048) 44%, transparent 68%),
    linear-gradient(90deg, rgba(100, 116, 139, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(100, 116, 139, 0.026) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  opacity: 0.34;
  transform: translate3d(-16%, 0, 0);
  animation: card-glide 34s ease-in-out infinite alternate;
}

.company-tile::after,
.project-card::after,
.education-card::after,
.work-item::after,
.contact-block::after,
.page-aside::after,
.link-row::after,
.project-facts::after,
.context-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.22), transparent);
  opacity: 0.42;
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 220ms ease, opacity 220ms ease;
}

.company-tile:hover::after,
.project-card:hover::after,
.education-card:hover::after,
.work-item:hover::after,
.contact-block:hover::after,
.page-aside:hover::after,
.link-row:hover::after,
.project-facts:hover::after,
.context-card:hover::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.project-card {
  display: grid;
  gap: 12px;
  border-radius: 0;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-1px);
  border-color: rgba(100, 116, 139, 0.2);
  background: rgba(255, 255, 255, 0.82);
}

.project-card-image {
  margin: -8px -8px 0;
  border: 1px solid var(--line);
  background: rgba(226, 232, 240, 0.45);
  overflow: hidden;
}

.project-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  height: auto;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
  transition: transform 240ms ease, filter 240ms ease;
}

.project-card-image.is-icon {
  min-height: 138px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.92), rgba(226, 232, 240, 0.54)),
    radial-gradient(circle at 80% 20%, rgba(100, 116, 139, 0.12), transparent 28%);
}

.project-card-image.is-icon img {
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: none;
}

.project-card-image.is-icon span {
  font-size: 2.4rem;
  line-height: 1;
}

.project-card:hover .project-card-image img {
  transform: scale(1.015);
  filter: saturate(1) contrast(1);
}

.project-card:hover .project-card-image.is-icon img {
  transform: translateY(-1px);
  filter: none;
}

.project-card.is-compact {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  min-height: 0;
}

.project-card.is-compact:hover {
  transform: translateX(2px);
}

.project-card.is-compact .company-project-thumb {
  width: 46px;
  height: 46px;
  font-size: 1.25rem;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(226, 232, 240, 0.5)),
    radial-gradient(circle at 70% 20%, rgba(100, 116, 139, 0.1), transparent 34%);
}

.project-card-compact-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-card-compact-copy h3 {
  margin-top: 3px;
  font-size: 1.35rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.project-card-compact-copy p {
  max-width: 48rem;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.project-card-compact-copy small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.project-card:focus-visible {
  outline: 2px solid rgba(100, 116, 139, 0.55);
  outline-offset: 3px;
}

.project-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.project-header h3 {
  font-size: 1.6rem;
  line-height: 0.95;
  margin-top: 2px;
}

.status-pill,
.year-pill,
.micro-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 1px solid rgba(23, 27, 34, 0.1);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 0.8rem;
}

.status-pill,
.year-pill {
  padding: 6px 10px;
  white-space: nowrap;
}

.project-highlights,
.project-related,
.education-card p,
.work-body p {
  color: var(--muted);
}

.project-highlights {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.project-related {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.project-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row.compact {
  gap: 7px;
}

.chip,
.micro-chip {
  padding: 7px 9px;
  font-size: 0.84rem;
}

.work-list {
  display: grid;
  gap: 12px;
}

.resume-meta {
  margin-bottom: 14px;
}

.resume-section {
  padding-top: 0;
}

.section.resume-section.unboxed-section {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 8px 0 0;
}

.resume-section .section-head {
  margin-bottom: 18px;
}

.resume-chip-panel {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 18px 0 0;
}

.resume-chip-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(160px, 42%);
  height: 1px;
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.26), transparent);
}

.resume-chip-panel span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(100, 116, 139, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.48)),
    repeating-linear-gradient(90deg, rgba(100, 116, 139, 0.04) 0 1px, transparent 1px 12px);
  color: var(--muted);
  padding: 7px 11px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.resume-chip-panel span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.08);
}

.contact-block {
  border-radius: 0;
  padding: 22px;
  display: grid;
  gap: 4px;
}

.contact-block p {
  margin: 0;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(23, 27, 34, 0.12);
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.contact-link::after {
  content: "+";
  margin-left: 16px;
  color: var(--muted);
  font-size: 0.9em;
}

.contact-link:hover {
  transform: translateY(-1px);
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.22);
}

.work-item {
  border-radius: 0;
  overflow: clip;
}

.work-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
}

.work-item summary::-webkit-details-marker {
  display: none;
}

.work-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.work-summary-main {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.work-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(100, 116, 139, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(226, 232, 240, 0.34)),
    radial-gradient(circle at 20% 0%, rgba(100, 116, 139, 0.12), transparent 40%);
  color: rgba(23, 27, 34, 0.74);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.work-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.12) contrast(1.04);
  opacity: 0.82;
}

.work-mark.has-image {
  background: rgba(248, 250, 252, 0.84);
}

.work-copy {
  min-width: 0;
}

.work-topline strong {
  font-size: 1.18rem;
}

.work-topline span {
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.inline-link {
  color: var(--text);
  border-bottom: 1px solid rgba(23, 27, 34, 0.18);
}

.summary-icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: rgba(100, 116, 139, 0.09);
  color: var(--accent);
  font-size: 1.25rem;
  transition: transform 180ms ease;
}

.work-item[open] .summary-icon {
  transform: rotate(45deg);
}

.work-body {
  padding: 0 20px 22px 84px;
  max-width: 70rem;
}

.work-body p {
  margin: 0 0 12px;
}

.work-body p:first-child {
  color: var(--text);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.education-card {
  border-radius: 0;
  padding: 22px;
}

.education-card h3 {
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 6px;
}

body[data-page="experiences"] main {
  gap: 34px;
}

.experiences-header {
  position: relative;
  overflow: hidden;
  padding-bottom: 10px;
}

.experiences-header::before,
.experiences-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.experiences-header::before {
  display: none;
}

.experiences-header::after {
  display: none;
}

.experiences-header > * {
  position: relative;
  z-index: 1;
}

.experience-index {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.68)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.14), transparent 30%);
}

.experience-count {
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.experience-section {
  position: relative;
}

.unusual-list {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
  margin: 12px 0 0;
}

.unusual-list::before {
  display: none;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.experience-feature,
.unusual-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.56)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.1), transparent 36%);
  box-shadow: var(--shadow);
  padding: 18px 20px 20px;
  display: grid;
  gap: 4px;
  min-height: 112px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.experience-feature::before,
.unusual-item::before {
  content: none;
}

.experience-number {
  justify-self: start;
  min-width: 22px;
  margin: 0 0 2px;
}

.experience-feature::after,
.unusual-item::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.24), transparent);
  opacity: 0.42;
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 220ms ease, opacity 220ms ease;
}

.experience-feature:hover,
.unusual-item:hover {
  transform: translateY(-2px);
  border-color: rgba(100, 116, 139, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.68)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.12), transparent 36%);
}

.experience-feature:hover::after,
.unusual-item:hover::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.experience-feature h3 {
  position: relative;
  z-index: 1;
  max-width: none;
  width: 100%;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0;
}

.experience-feature p:last-child {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

.unusual-item span:last-child {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--text);
  max-width: none;
  width: 100%;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.unusual-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.unusual-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.unusual-links a:hover {
  color: var(--text);
  border-color: rgba(100, 116, 139, 0.2);
}

.quick-links-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-link {
  padding: 10px 12px;
  border: 1px solid rgba(23, 27, 34, 0.12);
  background: rgba(255, 255, 255, 0.54);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  padding: 20px 6px 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  opacity: 0.68;
  text-align: left;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible {
  animation: rise 620ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

details > .work-body {
  display: grid;
  gap: 2px;
}

details[open] {
  background: var(--surface-strong);
}

details[open] .work-body {
  padding-top: 0;
}

details[open] summary {
  padding-bottom: 10px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(-1%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.03);
  }
}

@keyframes field-shift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 72px 36px, 36px 72px;
  }
}

@keyframes quiet-sheen {
  from {
    opacity: 0.42;
    transform: translate3d(-4%, -1.5%, 0) scale(1);
  }
  to {
    opacity: 0.72;
    transform: translate3d(3%, 1.5%, 0) scale(1.025);
  }
}

@keyframes line-breathe {
  from {
    opacity: 0.5;
    transform: scaleX(0.76);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes card-glide {
  from {
    opacity: 0.28;
    transform: translate3d(-18%, -4%, 0);
  }
  to {
    opacity: 0.56;
    transform: translate3d(12%, 4%, 0);
  }
}

@keyframes route-field {
  0% {
    background-position: 0 0, 0 0, 0 0;
    filter: contrast(1);
  }
  50% {
    background-position: 28px 0, 0 28px, 0 0;
    filter: contrast(1.08);
  }
  100% {
    background-position: 56px 28px, 28px 56px, 0 0;
    filter: contrast(1);
  }
}

@keyframes page-field-drift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
    filter: contrast(1);
  }
  50% {
    background-position: 0 0, 22px 0, 0 18px, 0 0;
    filter: contrast(1.06);
  }
  100% {
    background-position: 0 0, 52px 26px, 26px 52px, 0 0;
    filter: contrast(1);
  }
}

@media (max-width: 980px) {
  body[data-page="home"] .shell {
    padding-bottom: 44px;
  }

  .hero,
  .project-grid,
  .company-grid,
  .project-adjacent-grid,
  .education-grid,
  .unusual-list,
  .page-header,
  .route-grid,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-head .section-number {
    width: 22px;
    height: 22px;
    place-items: center;
    font-size: 0.54rem;
  }

  .section-head .section-number::before,
  .section-head .section-number::after {
    display: block;
  }

  body[data-page="home"] .section {
    padding: 26px 22px 24px;
  }

  body[data-page="home"] .section::before {
    left: 22px;
    right: 22px;
  }

  body[data-page="home"] .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }

  .route-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .route-grid.route-run {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-run-stage {
    min-height: 0;
    overflow: visible;
  }

  .home-wave-field {
    inset: clamp(-560px, -62vh, -280px) -32px -40px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.46) 18%, #000 38%, #000 92%, transparent 100%);
  }

  .route-card {
    min-height: 0;
  }

  .route-run .route-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .route-run .route-card .kicker,
  .route-run .route-card h3,
  .route-run .route-card p:last-child {
    grid-column: 1;
  }

  .route-run .route-card h3,
  .route-run .route-card p:last-child {
    max-width: none;
  }

  .route-run .route-card::after {
    left: 20px;
    right: 20px;
    width: auto;
  }

  .board-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .board-meta {
    justify-items: start;
    text-align: left;
  }

  .raw-article .column-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .raw-article .column-list > div {
    width: 100% !important;
    max-width: 100%;
  }

  .raw-article .column {
    width: 100% !important;
    flex-basis: 100%;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 28;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 0;
    align-items: center;
    gap: 16px;
    min-height: 0;
  }

  .brand {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 4px 0 14px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.14);
  }

  .brand-text {
    font-size: clamp(1.32rem, 5vw, 1.72rem);
    max-width: none;
    white-space: nowrap;
  }

  .topnav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    justify-content: stretch;
    justify-self: stretch;
  }

  .topnav a {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  html {
    scroll-behavior: auto;
  }

  body[data-page="home"] .hero,
  body[data-page="home"] .route-grid,
  body[data-page="home"] .route-card {
    -webkit-user-select: none;
    user-select: none;
  }

  body::before,
  body::after {
    animation: none;
    filter: none;
    transform: none;
  }

  body::before {
    opacity: 0.34;
  }

  body::after {
    opacity: 0.18;
  }

  .shell {
    width: min(100vw - 24px, 1160px);
    padding-top: 12px;
  }

  body[data-page="home"] .shell {
    padding-bottom: 28px;
  }

  body[data-page="home"],
  body[data-page="portfolio"],
  body[data-page="resume"],
  body[data-page="experiences"],
  body[data-page="project"],
  body[data-page="company"] {
    overscroll-behavior-x: none;
  }

  body[data-page="home"] .shell,
  body[data-page="portfolio"] .shell,
  body[data-page="resume"] .shell,
  body[data-page="experiences"] .shell,
  body[data-page="project"] .shell,
  body[data-page="company"] .shell {
    overflow-x: visible;
  }

  body[data-page="home"] .shell::before,
  body[data-page="home"] .shell::after,
  body[data-page="portfolio"] .shell::before,
  body[data-page="portfolio"] .shell::after,
  body[data-page="resume"] .shell::before,
  body[data-page="resume"] .shell::after,
  body[data-page="experiences"] .shell::before,
  body[data-page="experiences"] .shell::after,
  body[data-page="project"] .shell::before,
  body[data-page="project"] .shell::after,
  body[data-page="company"] .shell::before,
  body[data-page="company"] .shell::after {
    inset: 0;
  }

  body[data-page="home"] .shell::before,
  body[data-page="portfolio"] .shell::before,
  body[data-page="resume"] .shell::before,
  body[data-page="experiences"] .shell::before,
  body[data-page="project"] .shell::before,
  body[data-page="company"] .shell::before {
    animation: none;
    filter: none;
    opacity: 0.34;
    transform: none;
    transition: none;
  }

  body[data-page="home"] .shell::after,
  body[data-page="portfolio"] .shell::after,
  body[data-page="resume"] .shell::after,
  body[data-page="experiences"] .shell::after,
  body[data-page="project"] .shell::after,
  body[data-page="company"] .shell::after {
    display: none;
  }

  .home-run-stage {
    overflow: visible;
    min-height: 0;
  }

  .home-wave-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.5) 20%, #000 40%, #000 92%, transparent 100%);
    opacity: 0.68;
    transition: none;
    contain: paint;
    transform: translateZ(0);
  }

  .home-wave-field::before {
    opacity: 0.24;
    transition: none;
  }

  .home-wave-field::after {
    display: none;
  }

  .home-wave-field .particles-js-canvas-el {
    opacity: 0.72;
  }

  .route-grid.route-run::before,
  .route-card::before {
    animation: none;
    will-change: auto;
  }

  .route-run .route-card p:last-child {
    display: none;
  }

  body[data-page="home"] .route-run .route-card {
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
    min-height: 0;
    padding: 16px 18px;
  }

  body[data-page="home"] .route-run .route-card .section-number {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    margin: 0;
  }

  body[data-page="home"] .route-run .route-card .kicker,
  body[data-page="home"] .route-run .route-card h3 {
    grid-column: 2;
  }

  body[data-page="home"] .route-run .route-card .kicker {
    grid-row: 1;
    margin: 0;
  }

  body[data-page="home"] .route-run .route-card h3 {
    grid-row: 2;
    max-width: none;
    margin: 0;
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 0.98;
  }

  body[data-page="home"] .topbar,
  body[data-page="portfolio"] .topbar,
  body[data-page="resume"] .topbar,
  body[data-page="experiences"] .topbar,
  body[data-page="project"] .topbar,
  body[data-page="company"] .topbar {
    position: static;
    display: contents;
    min-height: 0;
    padding: 0;
    margin-bottom: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  body[data-page="home"] .brand,
  body[data-page="portfolio"] .brand,
  body[data-page="resume"] .brand,
  body[data-page="experiences"] .brand,
  body[data-page="project"] .brand,
  body[data-page="company"] .brand {
    position: fixed;
    top: 12px;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    z-index: 60;
    gap: 10px;
    width: auto;
    min-height: 58px;
    justify-content: flex-start;
    padding: 13px 14px;
    margin-bottom: 14px;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid rgba(23, 27, 34, 0.08);
    backdrop-filter: none;
    box-shadow: 0 12px 28px rgba(52, 44, 36, 0.05);
  }

  .brand-text {
    font-size: clamp(1.28rem, 6vw, 1.58rem);
    max-width: none;
    white-space: nowrap;
  }

  .topnav {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 14px;
    margin: 76px 0 22px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(23, 27, 34, 0.08);
    box-shadow: 0 10px 24px rgba(52, 44, 36, 0.035);
  }

  .topnav a {
    grid-template-columns: 18px minmax(0, auto);
    gap: 4px;
    min-width: 0;
    font-size: clamp(0.72rem, 2.9vw, 0.82rem);
    padding: 6px 5px;
    min-height: 36px;
  }

  .topnav .nav-number {
    --cross-size: 14px;
    width: 18px;
    height: 18px;
    font-size: 0.48rem;
  }

  .page-header {
    gap: 16px;
    padding-top: 8px;
  }

  .hero {
    padding: 4px 0 4px;
  }

  .hero-copy {
    padding: 8px 0 10px;
  }

  .home-title {
    font-size: clamp(2.75rem, 11vw, 4rem);
    line-height: 0.92;
    white-space: normal;
    max-width: 100%;
  }

  .home-title > span {
    display: block;
  }

  .home-title > span:first-child {
    white-space: nowrap;
  }

  .home-title > span:nth-child(2) {
    max-width: 100%;
    white-space: normal;
  }

  .unusual-word {
    display: inline-block;
    letter-spacing: -0.035em;
    transform: translateY(0);
    white-space: nowrap;
  }

  .unusual-letter {
    display: inline-block;
  }

  .unusual-letter-up {
    transform: translateY(-0.065em);
  }

  .unusual-letter-down {
    transform: translateY(-0.12em);
  }

  .hero-copy .lede {
    max-width: min(100%, 34rem);
    font-size: clamp(1.05rem, 4.9vw, 1.22rem);
    line-height: 1.42;
  }

  .hero-card,
  .section,
  .page-aside,
  .contact-block {
    border-radius: 0;
    padding: 18px;
  }

  .hero-card {
    padding: 0;
  }

  .project-grid,
  .project-grid.full,
  .company-grid,
  .project-adjacent-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-adjacent-card {
    min-height: auto;
    padding: 18px;
  }

  .project-adjacent-card strong {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }

  .section.companies-section {
    padding-top: 0;
  }

  .section.projects-section {
    padding-top: 0;
  }

  .section.unboxed-section {
    padding-top: 0;
  }

  .company-tile {
    padding: 18px;
  }

  .company-tile-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .company-tile h3 {
    font-size: 1.6rem;
  }

  .experience-grid,
  .unusual-list {
    grid-template-columns: 1fr;
  }

  .experiences-header::before {
    inset: auto -80px 40px auto;
    width: 220px;
    height: 220px;
  }

  .experiences-header::after,
  .unusual-list::before {
    display: none;
  }

  .experience-feature,
  .experience-feature:hover,
  .unusual-item,
  .unusual-item:hover {
    min-height: 0;
    transform: none;
  }

  .unusual-item span:last-child {
    font-size: 1rem;
  }

  .project-heading-visual,
  .project-hero-image {
    width: 100%;
    margin-bottom: 14px;
  }

  .project-heading-visual.is-icon {
    width: 78px;
    height: 78px;
  }

  .project-card {
    padding: 16px;
  }

  .project-card h3 {
    font-size: 1.35rem;
  }

  .project-summary,
  .project-related {
    display: none;
  }

  .project-highlights {
    margin-top: 10px;
  }

  .project-footer {
    margin-top: 12px;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 3.8rem);
    line-height: 0.98;
  }

  .work-item summary {
    align-items: flex-start;
    padding: 18px;
  }

  .work-summary-main {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .work-mark {
    width: 52px;
    height: 52px;
    align-self: start;
  }

  .work-copy {
    display: grid;
    gap: 4px;
    padding-top: 1px;
  }

  .work-topline {
    display: grid;
    gap: 3px;
  }

  .work-topline strong,
  .work-topline span {
    display: block;
    line-height: 1.18;
  }

  .work-topline strong {
    font-size: 1.08rem;
  }

  .work-topline span {
    font-size: 1rem;
  }

  .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 2px;
    line-height: 1.22;
  }

  .summary-icon {
    align-self: start;
    margin-top: 3px;
  }

  .work-body {
    padding: 0 18px 18px 84px;
  }

  .experience-feature h3 {
    font-size: 1rem;
  }

  .footer {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .topnav a {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    padding-inline: 4px;
  }
}

@media (min-width: 721px) {
  .shell {
    padding-top: 118px;
  }

  body[data-page="home"] .topbar,
  body[data-page="portfolio"] .topbar,
  body[data-page="resume"] .topbar,
  body[data-page="experiences"] .topbar,
  body[data-page="project"] .topbar,
  body[data-page="company"] .topbar,
  .topbar {
    position: fixed;
    top: 24px;
    left: 50%;
    width: min(1160px, calc(100vw - 40px));
    margin-bottom: 0;
    transform: translateX(-50%);
    z-index: 80;
  }

  .brand {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  body::before {
    animation: none;
  }

  body::after,
  .hero-copy::before,
  body[data-page="home"] .shell::before,
  body[data-page="home"] .shell::after,
  body[data-page="portfolio"] .shell::before,
  body[data-page="portfolio"] .shell::after,
  body[data-page="resume"] .shell::before,
  body[data-page="resume"] .shell::after,
  body[data-page="experiences"] .shell::before,
  body[data-page="experiences"] .shell::after,
  body[data-page="home"] .section::before,
  body[data-page="home"] .section::after,
  .route-card::before,
  .home-wave-field::before {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.raw-export-section {
  margin-top: 8px;
}

.project-outline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.project-outline-column {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.project-outline-column h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1;
}

.project-outline-column p {
  margin: 0 0 8px;
  color: var(--muted);
}

.project-outline-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.project-outline-column li {
  margin: 0;
}

.project-outline-column li a {
  color: inherit;
  text-decoration-color: rgba(100, 116, 139, 0.34);
  text-underline-offset: 0.18em;
}

.project-outline-column li a:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}

.outline-level {
  display: inline-block;
  min-width: 2.35rem;
  margin-right: 0.35rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.project-embed {
  margin-top: 6px;
}

.raw-article {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}

.raw-article *,
.raw-article *::before,
.raw-article *::after {
  min-width: 0;
}

.raw-article div,
.raw-article figure,
.raw-article nav,
.raw-article table {
  max-width: 100%;
}

.raw-article > *:first-child {
  margin-top: 0;
}

.raw-article p {
  margin: 0 0 1rem;
}

.raw-article a {
  color: var(--text);
  text-decoration-color: rgba(119, 135, 159, 0.5);
}

.raw-article h1,
.raw-article h2,
.raw-article h3,
.raw-article h4 {
  font-family: "Cormorant Garamond", serif;
  color: var(--text);
  line-height: 1.08;
  margin: 1.5rem 0 0.8rem;
}

.raw-article h1,
.raw-article h2 {
  max-width: 62rem;
}

.raw-article div:not(:first-child) > h1,
.raw-article div:not(:first-child) > h2 {
  margin-top: clamp(2.35rem, 5vw, 4.75rem);
  padding-top: clamp(1rem, 2.2vw, 1.55rem);
  border-top: 1px solid rgba(119, 135, 159, 0.2);
}

.raw-article h1 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.raw-article h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
}

.raw-article h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.65rem);
}

.raw-article h4 {
  font-size: 1.1rem;
}

.raw-article hr {
  border: none;
  border-bottom: 1px solid var(--border);
  margin: 1.5rem 0;
}

.raw-article figure {
  margin: 1.25rem 0;
}

.raw-article figure.image {
  display: grid;
  gap: 10px;
  padding: clamp(10px, 1.5vw, 14px);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.62)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.08), transparent 36%);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.raw-article figure.image a {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.raw-article img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
}

.raw-article figure.image img {
  border-color: rgba(100, 116, 139, 0.18);
}

.raw-article figure.image figcaption {
  max-width: 58rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.raw-article figure.image img,
.raw-article img.bookmark-image {
  width: 100% !important;
}

.raw-article img.icon,
.raw-article img.notion-static-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.35em;
  border: 0;
  background: transparent;
  vertical-align: -0.18em;
}

.raw-article .icon {
  margin-right: 0.35em;
}

.raw-article a.bookmark.source {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(180px, 0.72fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.12), transparent 34%);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.raw-article a.bookmark.source:hover {
  transform: translateY(-1px);
  border-color: rgba(100, 116, 139, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.86)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.16), transparent 34%);
}

.raw-article .bookmark-info {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
}

.raw-article .bookmark-text {
  display: grid;
  gap: 10px;
}

.raw-article .bookmark-title {
  max-width: 34rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.raw-article .bookmark-description {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.5;
}

.raw-article .bookmark-href {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 0;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.raw-article .bookmark-href::after {
  content: attr(data-link-label);
  font-size: 0.92rem;
}

.raw-article .bookmark-href .bookmark-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.raw-article img.bookmark-image {
  align-self: stretch;
  width: 100% !important;
  height: 100% !important;
  min-height: 220px;
  border: 0;
  object-fit: cover;
  background: rgba(248, 250, 252, 0.9);
}

.raw-article img.is-broken {
  display: none !important;
}

.raw-article a.bookmark.source.has-broken-image {
  grid-template-columns: minmax(0, 1fr);
}

.raw-article .callout > div:has(img.notion-static-icon) {
  display: none;
}

.raw-article .callout:has(img.notion-static-icon) {
  grid-template-columns: minmax(0, 1fr);
}

.raw-article .link-to-page {
  margin: 0.35rem 0;
}

.raw-article .link-to-page a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(119, 135, 159, 0.35);
  color: var(--text);
  font-weight: 600;
}

.raw-article .external-link-card {
  display: grid;
  gap: 9px;
  max-width: 42rem;
  margin: 1.2rem 0 1.55rem;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.76)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.12), transparent 34%);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.raw-article .external-link-card:hover {
  transform: translateY(-1px);
  border-color: rgba(100, 116, 139, 0.52);
}

.raw-article .external-link-card__label {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.raw-article .external-link-card strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.raw-article .external-link-card__cta {
  width: fit-content;
  margin-top: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.raw-article .source-code-card {
  display: grid;
  gap: 10px;
  margin: 1.35rem 0 1.7rem;
  padding: 20px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.58)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.14), transparent 30%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.raw-article .source-code-card__label {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.raw-article .source-code-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 0.95;
}

.raw-article .source-code-card p {
  max-width: 42rem;
  margin: 0;
}

.raw-article .source-code-card a {
  display: grid;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.raw-article .source-code-card a:hover {
  transform: translateY(-1px);
  border-color: rgba(100, 116, 139, 0.55);
  background: rgba(255, 255, 255, 0.96);
}

.raw-article .source-code-card a span {
  font-weight: 800;
}

.raw-article .source-code-card a strong {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.raw-article .video-embed {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 1.4rem 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.raw-article .video-embed iframe,
.raw-article .video-embed video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #0f172a;
}

.raw-article .video-embed figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.raw-article .video-embed figcaption a {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.raw-article .presentation-preview {
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.76);
  box-shadow: var(--shadow);
  padding: clamp(12px, 2vw, 18px);
  display: grid;
  gap: 14px;
}

.raw-article .presentation-frame {
  border: 1px solid var(--line);
  background: var(--ink);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.raw-article .presentation-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.raw-article .presentation-preview figcaption {
  display: grid;
  gap: 7px;
  margin: 0;
}

.raw-article .presentation-preview figcaption span {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.raw-article .presentation-preview figcaption strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.raw-article .presentation-preview figcaption a {
  width: fit-content;
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
}

.raw-article .figma-embed {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(255, 255, 255, 0.68)),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.1), transparent 32%);
  box-shadow: var(--shadow);
  padding: clamp(12px, 2vw, 18px);
  display: grid;
  gap: 14px;
}

.raw-article .figma-frame {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.04);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.raw-article .figma-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.raw-article .figma-embed figcaption {
  display: grid;
  gap: 7px;
  margin: 0;
  overflow-wrap: anywhere;
}

.raw-article .figma-embed figcaption span {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.raw-article .figma-embed figcaption strong {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.raw-article .figma-embed figcaption a {
  width: fit-content;
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
}

.raw-article .column-list {
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
  gap: 26px;
  align-items: flex-start;
}

.raw-article .column {
  width: auto !important;
  min-width: 0;
}

@media (max-width: 980px) {
  .raw-article .column-list {
    grid-template-columns: 1fr;
  }

  .raw-article .column-list > div,
  .raw-article .column {
    width: 100% !important;
    max-width: 100%;
  }
}

.raw-article .table_of_contents {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.62));
  padding: 16px 18px;
  margin-bottom: 1.25rem;
}

.raw-article .table_of_contents-item {
  font-size: 0.92rem;
  line-height: 1.25;
  padding: 0;
}

.raw-article .table_of_contents-item + .table_of_contents-item {
  margin-top: 9px;
}

.raw-article .table_of_contents-indent-1 {
  padding-left: 14px;
  border-left: 1px solid rgba(100, 116, 139, 0.16);
}

.raw-article .table_of_contents-link {
  display: inline;
  color: var(--muted);
  border-bottom-color: rgba(119, 135, 159, 0.26);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: normal;
  word-break: normal;
}

.raw-article .table_of_contents-link:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.raw-article .collection-content-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.58);
}

.raw-article table.collection-content {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
}

.raw-article table.collection-content th,
.raw-article table.collection-content td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(23, 27, 34, 0.08);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.raw-article table.collection-content th {
  color: var(--muted);
  font-weight: 800;
}

.raw-article table.collection-content tr:last-child td {
  border-bottom: 0;
}

.raw-article .callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1rem 1.05rem;
  background: rgba(248, 250, 252, 0.9);
  margin: 1.2rem 0;
  overflow: hidden;
}

.raw-article .callout > div {
  width: auto !important;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.raw-article .properties {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
}

.raw-article .properties th,
.raw-article .properties td {
  border: 1px solid var(--border);
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.raw-article .properties th {
  width: 32%;
  color: var(--text);
  font-weight: 600;
  background: rgba(248, 250, 252, 0.9);
}

.raw-article ul,
.raw-article ol {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.raw-article ul.toggle {
  margin-left: 0;
  list-style: none;
}

.raw-article ul.toggle > li {
  list-style: none;
}

.raw-article ul.toggle > li::marker {
  content: "";
}

.raw-article li {
  margin: 0.3rem 0;
}

.raw-article details {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  padding: 0.75rem 0.9rem;
  margin: 0.8rem 0;
}

.raw-article summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.raw-article .source {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  background: rgba(248, 250, 252, 0.9);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.raw-article .page-body > .column-list:first-child {
  margin-top: 0;
}

.raw-article .page-body > .column-list:last-child {
  margin-bottom: 0;
}

.raw-article .page-body > p:first-child {
  margin-top: 0;
}

.raw-article .page-body > h1:first-child,
.raw-article .page-body > h2:first-child,
.raw-article .page-body > h3:first-child {
  margin-top: 0;
}

.source-card {
  align-items: center;
}

.source-card strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.source-card em {
  display: block;
  font-style: normal;
  color: var(--muted);
  margin-top: 4px;
}

.page-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52rem;
}

.project-embed {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.project-frame {
  display: block;
  width: 100%;
  height: min(82vh, 1200px);
  border: 0;
  background: #fff;
}

@media (max-width: 720px) {
  .project-outline {
    grid-template-columns: 1fr;
  }

  .raw-article .column-list {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .raw-article .column {
    width: 100% !important;
  }

  .raw-article [id="9af1c900-00b0-4f23-bc04-c9d0b1d24ea7"],
  .raw-article [id="6be16a53-2161-4427-839d-03c5257c56eb"],
  .raw-article [id="8a47f2b1-5296-4288-9451-3f49dc0a804c"],
  .raw-article [id="0afefcc4-676b-4781-97cb-95c7ad94a810"],
  .raw-article [id="f08c4433-a67c-40d7-9457-490d89e0703a"] {
    max-width: min(100%, 360px);
    margin-inline: auto;
  }

  .raw-article [id="9af1c900-00b0-4f23-bc04-c9d0b1d24ea7"] figure.image,
  .raw-article [id="6be16a53-2161-4427-839d-03c5257c56eb"] figure.image,
  .raw-article [id="8a47f2b1-5296-4288-9451-3f49dc0a804c"] figure.image,
  .raw-article [id="0afefcc4-676b-4781-97cb-95c7ad94a810"],
  .raw-article [id="f08c4433-a67c-40d7-9457-490d89e0703a"] {
    padding: 8px;
  }

  .raw-article [id="9af1c900-00b0-4f23-bc04-c9d0b1d24ea7"] figure.image img,
  .raw-article [id="6be16a53-2161-4427-839d-03c5257c56eb"] figure.image img,
  .raw-article [id="8a47f2b1-5296-4288-9451-3f49dc0a804c"] figure.image img,
  .raw-article [id="0afefcc4-676b-4781-97cb-95c7ad94a810"] img,
  .raw-article [id="f08c4433-a67c-40d7-9457-490d89e0703a"] img {
    width: auto !important;
    max-width: 100%;
    max-height: 260px;
    margin-inline: auto;
    object-fit: contain;
  }

  .raw-article [id="9af1c900-00b0-4f23-bc04-c9d0b1d24ea7"] figure.image img,
  .raw-article [id="6be16a53-2161-4427-839d-03c5257c56eb"] figure.image img {
    max-height: 190px;
  }

  .raw-article .table_of_contents {
    padding: 14px;
  }

  .raw-article div:not(:first-child) > h1,
  .raw-article div:not(:first-child) > h2 {
    margin-top: 2.15rem;
    padding-top: 1rem;
  }

  .raw-article .collection-content-wrapper {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .raw-article table.collection-content {
    display: block;
    min-width: 0;
  }

  .raw-article table.collection-content thead {
    display: none;
  }

  .raw-article table.collection-content tbody {
    display: grid;
    gap: 10px;
  }

  .raw-article table.collection-content tr {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.72)),
      radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.08), transparent 36%);
  }

  .raw-article table.collection-content th,
  .raw-article table.collection-content td {
    display: grid;
    grid-template-columns: minmax(72px, 0.28fr) minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    border: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .raw-article table.collection-content td::before {
    content: attr(data-label);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .raw-article table.collection-content td > * {
    min-width: 0;
  }

  .raw-article table.collection-content .selected-value {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 6px 6px 0;
    white-space: normal;
  }

  .raw-article .figma-embed,
  .raw-article .presentation-preview,
  .raw-article .video-embed {
    margin-inline: 0;
    gap: 12px;
    padding: 10px;
  }

  .raw-article .figma-frame,
  .raw-article .presentation-frame {
    aspect-ratio: 4 / 3;
    min-height: 230px;
  }

  .raw-article .video-embed iframe,
  .raw-article .video-embed video {
    aspect-ratio: 4 / 3;
    min-height: 210px;
  }

  .raw-article .figma-embed figcaption strong,
  .raw-article .presentation-preview figcaption strong {
    font-size: clamp(1.25rem, 8vw, 1.7rem);
  }

  .raw-article .figma-embed figcaption a,
  .raw-article .presentation-preview figcaption a,
  .raw-article .external-link-card__cta,
  .raw-article .bookmark-href {
    width: 100%;
    justify-content: center;
  }

  .raw-article a.bookmark.source {
    grid-template-columns: 1fr;
  }

  .raw-article .bookmark-info {
    padding: 16px;
  }

  .raw-article .bookmark-title {
    font-size: clamp(1.35rem, 7.5vw, 1.85rem);
  }

  .raw-article .bookmark-description {
    font-size: 0.96rem;
  }

  .raw-article img.bookmark-image {
    order: -1;
    min-height: 150px;
    max-height: 220px;
  }

  .raw-article .callout {
    grid-template-columns: 1fr;
  }

  .raw-article .properties th,
  .raw-article .properties td {
    display: block;
    width: 100%;
  }

  .raw-article .properties tr {
    display: block;
    margin-bottom: 10px;
  }

  .project-frame {
    height: 78vh;
  }
}

@media (min-width: 721px) {
  html.has-cursor-cross-support a,
  html.has-cursor-cross-support button,
  html.has-cursor-cross-support summary,
  html.has-cursor-cross-support input,
  html.has-cursor-cross-support select,
  html.has-cursor-cross-support textarea,
  html.has-cursor-cross-support label,
  html.has-cursor-cross-support [role="button"],
  html.has-cursor-cross-support [tabindex]:not([tabindex="-1"]),
  html.has-cursor-cross-support .project-card,
  html.has-cursor-cross-support .company-tile,
  html.has-cursor-cross-support .route-card,
  html.has-cursor-cross-support .contact-link,
  html.has-cursor-cross-support .quick-link,
  html.has-cursor-cross-support .project-adjacent-card,
  html.has-cursor-cross-support .project-return-card,
  html.has-cursor-cross-support .external-link-card,
  html.has-cursor-cross-support .source-card,
  html.has-cursor-cross-support .bookmark.source,
  html.has-cursor-cross-support [onclick] {
    cursor: none !important;
  }
}
