:root {
  color-scheme: dark;
  --paper: #f1f0ed;
  --ink: #101010;
  --line: #303030;
  --muted: #a6a6a6;
  --lime: #48ff00;
  --space-section: clamp(82px, 12vw, 180px);
}

::selection { color: #000; background: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
body > [data-page-transition-content] { overflow: clip; }
main#main { padding-inline: 0; }
section[id] { scroll-margin-top: 96px; }

.portfolio-logo { display: inline-flex; gap: 10px; }
.brand-mark, .section-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  background: currentColor;
  width: 20px;
  aspect-ratio: 1;
  flex: none;
}
.brand-mark::after, .section-mark::after {
  content: "";
  background: #000;
  width: 34%;
  aspect-ratio: 1;
}
.brand-mark { transition: transform 750ms cubic-bezier(.2,.7,.2,1); }
.portfolio-logo:hover .brand-mark { transform: rotate(90deg); }
.brand-name { font-weight: 700; letter-spacing: -.055em; }
.header.is-pill .brand-mark::after { background: #fff; }

.portfolio-section { padding: var(--space-section) var(--gutter); }
.portfolio-section.home-lede.container { padding: clamp(76px, 10vw, 144px) var(--gutter) var(--space-section); }
.section-heading { display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(33px, 5vw, 72px); }
.section-heading h2, .dream-heading h2 { margin: 0; font-weight: 400; letter-spacing: -.075em; }
.section-heading h2 { font-size: clamp(38px, 5.45vw, 92px); line-height: .98; text-transform: uppercase; }
.section-mark { width: clamp(15px, 1.6vw, 23px); color: var(--lime); }
.bio-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 125px); align-items: stretch; }
.bio-status { position: relative; display: flex; flex-direction: column; min-height: 270px; padding: clamp(24px, 4vw, 58px); overflow: hidden; border: 1px solid var(--line); background: #101010; }
.status-label {
  margin: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  z-index: 1;
  font-size: 12px;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.status-label i { width: 7px; height: 7px; background: var(--lime); box-shadow: 0 0 0 4px #48ff0020; }
.portfolio-section.home-lede .bio-status .bio-intro {
  position: relative;
  z-index: 1;
  font-size: clamp(19px, 2.1vw, 34px);
  line-height: 1.22;
  letter-spacing: -.055em;
  max-width: 31ch;
  margin: 54px 0 0;
}
.status-year { color: #696969; position: absolute; right: 16px; top: 16px; font-size: 11px; }
.bio-details { display: flex; flex-direction: column; justify-content: center; margin: 0; }
.bio-details > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; padding: clamp(19px, 3vw, 38px) 0; border-bottom: 1px solid var(--line); }
.bio-details > div:first-child { border-top: 1px solid var(--line); }
.bio-details dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.bio-details dd { margin: 0; font-size: clamp(16px, 1.55vw, 25px); letter-spacing: -.04em; }
.bio-details a { color: inherit; text-decoration: none; }
.bio-details a span { color: var(--lime); }
.bio-details a:hover { color: var(--lime); }

.dream-section { position: relative; color: var(--ink); background: var(--paper); overflow: hidden; }
.dream-layout { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(52px, 8vw, 140px); }
.dream-heading { align-self: start; }
.eyebrow { margin: 0 0 24px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.dream-heading h2 { font-size: clamp(54px, 8.4vw, 155px); line-height: .92; overflow-wrap: break-word; }
.dream-copy { display: grid; gap: clamp(23px, 3.5vw, 49px); font-size: clamp(16px, 1.5vw, 23px); line-height: 1.55; letter-spacing: -.045em; }
.dream-copy p { margin: 0; max-width: 54ch; }
.dream-copy blockquote { margin: 0; padding: 23px 0 23px 21px; border-left: 2px solid var(--ink); font-size: clamp(22px, 2.7vw, 42px); letter-spacing: -.07em; line-height: 1.18; }
.paper-dither {
  position: absolute;
  inset: auto auto -6% -3%;
  width: min(52vw, 760px);
  aspect-ratio: 1.55;
  background: radial-gradient(circle, #000 0 25%, transparent 29%) 0 0 / 12px 12px;
  mask-image: radial-gradient(ellipse at 0 100%, #000 0 8%, transparent 68%);
  opacity: .35;
  pointer-events: none;
}

.portfolio-footer { padding: clamp(36px, 5vw, 75px) var(--gutter) 24px; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 16px; }
.language-control { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.language-control select { background: #151515; color: #fff; border: 1px solid #555; font: inherit; padding: 8px; border-radius: 0; }
.footer-wordmark { display: block; overflow: clip; margin: 38px 0 16px -.055em; color: #eee; text-decoration: none; font-size: clamp(49px, 23vw, 360px); line-height: .83; font-weight: 700; letter-spacing: -.115em; }

.js-motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.91s cubic-bezier(.2,.65,.22,1),transform 0.91s cubic-bezier(.2,.65,.22,1); }
.js-motion [data-reveal].is-in { opacity: 1; transform: translateY(0); }
.js-motion .bio-details > :nth-child(2), .js-motion .dream-copy > :nth-child(2) { transition-delay: 84.5ms; }
.js-motion .bio-details > :nth-child(3), .js-motion .dream-copy > :nth-child(3) { transition-delay: 149.5ms; }

@media (max-width: 768px) {
  section[id] { scroll-margin-top: 72px; }
  .bio-grid, .dream-layout { grid-template-columns: 1fr; }
  .bio-status { min-height: 203px; }
  .dream-layout { gap: 32px; }
  .paper-dither { width: 70vw; opacity: .27; }
}
@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Responsive refinements */
@media (max-width: 768px) {
  :root { --gutter: clamp(20px, 5.5vw, 32px); --space-section: clamp(76px, 18vw, 112px); }
  .portfolio-section.home-lede.container { padding: 78px var(--gutter) var(--space-section); }
  .section-heading { gap: 12px; margin-bottom: 36px; }
  .section-heading h2 { font-size: clamp(36px, 10vw, 58px); }
  .bio-grid { gap: 30px; }
  .bio-status { padding: 24px; }
  .bio-details > div { padding: 20px 0; }
  .dream-heading h2 { font-size: clamp(46px, 12vw, 76px); }
  .dream-copy { font-size: 16px; line-height: 1.65; }
  .dream-copy blockquote { font-size: clamp(22px, 6vw, 30px); }
  .footer-top { align-items: flex-start; gap: 24px; }
  .footer-wordmark { font-size: 23vw; margin-top: 56px; }
  .header__menu { min-width: 44px; min-height: 44px; }
}
@media (max-width: 380px) {
  .bio-details > div { align-items: flex-start; flex-direction: column; }
}
@media (hover: hover) {
  .bio-details a, .footer-bottom a { transition: color 0.325s ease, border-color 0.325s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Cards */
.bio-status { background: linear-gradient(145deg, #171717, #0d0d0d 65%); border-color: #383838; transition: border-color 0.585s ease, transform 0.585s cubic-bezier(.2,.7,.2,1); }
.bio-status::after { content: ''; position: absolute; width: 240px; aspect-ratio: 1; right: -75px; bottom: -100px; opacity: .28; background: radial-gradient(circle, #b8b8b8 1px, transparent 1.8px) 0 0/10px 10px; mask-image: radial-gradient(circle, #000, transparent 68%); pointer-events: none; }
.bio-details { gap: 10px; }
.bio-details > div, .bio-details > div:first-child { border: 1px solid #303030; background: #111; padding: clamp(18px, 2vw, 26px); transition: background 0.455s ease, border-color 0.455s ease, transform 0.455s ease; }
.bio-details > div:hover { border-color: #777; background: #181818; }
.dream-copy blockquote { background: #e7e6e1; border-left: 3px solid #111; padding: clamp(22px, 3vw, 38px); }
.js-motion [data-reveal] { transform: translateY(20px); transition-duration: 1.72s; transition-timing-function: cubic-bezier(.16,1,.3,1); }
.js-motion [data-reveal].is-in { transform: translateY(0); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .bio-status:hover { border-color: #888; transform: translateY(-4px); }
  .bio-details > div:hover { transform: translateY(-3px); }
}
@media (max-width: 768px) {
  .bio-details { gap: 8px; }
  .bio-details > div, .bio-details > div:first-child { padding: 18px; }
}
.material-hero {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #181818;
  touch-action: pan-y pinch-zoom;
}
.material-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.material-hero__surface { image-rendering: pixelated; }
.material-hero__pixels { z-index: 2; }
.material-hero__title { z-index: 1; margin: 0; max-width: calc(100% - 2 * var(--gutter)); }
.material-hero__button {
  display: block;
  padding: 0;
  border: 0;
  color: #f7f7f7;
  background: none;
  font: 400 clamp(29px, 5.75vw, 108px)/.92 var(--font-mono), monospace;
  text-align: left;
  cursor: crosshair;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.material-hero__button.is-pixelated { opacity: var(--title-ink, 0); }
.material-hero__line { display: block; text-wrap: balance; }
.material-hero__line:empty { display: none; }
.material-hero__line:nth-child(2) { color: #c6c6c6; }
.material-hero__line:nth-child(3) { color: #dedede; text-align: right; }

.skill-reel { --cover-width: clamp(208px, 26vw, 368px); margin-inline: calc(-1 * var(--gutter)); }
.skill-reel__track {
  position: relative;
  display: flex;
  box-sizing: border-box;
  gap: clamp(38px, 8vw, 136px);
  padding: 18px calc((100% - var(--cover-width)) / 2) 32px;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  user-select: none;
  cursor: grab;
}
.skill-reel__track:focus-visible { outline-offset: -4px; }
.skill-reel__track::-webkit-scrollbar { display: none; }
.skill-reel__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.skill-slide { flex: 0 0 var(--cover-width); min-width: 0; scroll-snap-align: center; }
.skill-cover-card {
  margin: 0;
  transform-origin: center 44%;
  transform: translateY(calc(13px * var(--depth, 0))) rotate(calc(6deg * var(--offset, 0))) scale(calc(1 - .07 * var(--depth, 0)));
}
.skill-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 2 / 3;
  padding: 8%;
  overflow: hidden;
  background: var(--cover);
  color: var(--cover-ink);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 4px;
  container-type: inline-size;
}
.skill-cover__title {
  position: relative;
  z-index: 1;
  display: grid;
  font-family: Impact, 'Arial Narrow', 'DejaVu Sans', sans-serif;
  font-size: var(--cover-type, 30cqi);
  font-weight: 900;
  line-height: .87;
  letter-spacing: -.085em;
}
.skill-cover__title span:last-child:not(:first-child) { color: var(--cover-accent); }
.skill-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  font: 400 clamp(13px, 1.35vw, 17px)/1.3 var(--font-mono), monospace;
  color: #f0efed;
}
.skill-caption span { white-space: nowrap; color: #bcbab5; }
.header.is-pill .portfolio-logo { color: #151515; }
@media (max-width: 768px) {
  .header { transition: background-color 0.325s; }
  .is-below-material .header:not(.is-pill):not(.is-menu-open) { background-color: #101010ed; }
  .cursor__ball, .cursor__label-wrap { display: none !important; }
  body { cursor: auto; }
  .material-hero { margin-inline: 10px; }
  .material-hero__button { font-size: clamp(26px, 8.6vw, 56px); }
  .skill-reel { --cover-width: min(55vw, 296px); }
  .skill-reel__track { gap: clamp(40px, 14vw, 78px); }
  .skills-section .section-heading { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .skill-cover-card { transform: none; }
}
/* Swap the text between the two halves of the wipe. */
@media (prefers-reduced-motion: no-preference) {
  .language-leaving :is([data-copy], .material-hero__line, .lang-current) {
    animation: language-wipe-out .30s steps(18, end) var(--language-delay, 0ms) both;
  }
  .language-entering :is([data-copy], .material-hero__line, .lang-current) {
    animation: language-wipe-in .94s steps(32, end) var(--language-delay, 0ms) both;
  }
  .language-leaving :is(.material-hero__line:nth-child(2), .mobile-menu__link:nth-child(2), .bio-intro, [data-copy="dream_p2"]),
  .language-entering :is(.material-hero__line:nth-child(2), .mobile-menu__link:nth-child(2), .bio-intro, [data-copy="dream_p2"]) {
    --language-delay: 32ms;
  }
  .language-leaving :is(.material-hero__line:nth-child(3), .mobile-menu__link:nth-child(3), .bio-details [data-copy], [data-copy="dream_p3"]),
  .language-entering :is(.material-hero__line:nth-child(3), .mobile-menu__link:nth-child(3), .bio-details [data-copy], [data-copy="dream_p3"]) {
    --language-delay: 64ms;
  }
}
@keyframes language-wipe-out {
  0% { clip-path: inset(-6% -3%); }
  14% { clip-path: inset(-6% -3%); }
  70% { clip-path: inset(-6% -3% -6% 50%); opacity: .78; }
  100% { clip-path: inset(-6% -3% -6% 100%); opacity: 0; }
}
@keyframes language-wipe-in {
  0% { clip-path: inset(-6% 100% -6% -3%); opacity: .3; }
  48% { clip-path: inset(-6% 38% -6% -3%); opacity: .95; }
  83%, 100% { clip-path: inset(-6% -3%); opacity: 1; }
}

/* Five cover compositions, with each symbol built into its own artwork. */
.skill-cover { padding: 8%; isolation: isolate; }
.skill-cover__title { color: var(--cover-ink); }
.cover-art { position: absolute; inset: 0; pointer-events: none; }
.cover-art i { position: absolute; display: block; aspect-ratio: 1; }
.skill-slide--python {
  --cover: #cfe574;
  --cover-ink: #13271f;
  --cover-accent: #13271f;
  --cover-type: 23cqi;
}
.skill-slide--python .skill-cover {
  background: linear-gradient(154deg, #cfe574 0 49%, #252f24 49.15%);
}
.skill-slide--python .cover-art {
  background: repeating-linear-gradient(90deg, transparent 0 9%, #9caa7a40 9% 9.4%);
}
.skill-slide--python .cover-art i:first-child {
  width: 86%; left: -12%; bottom: 8%;
  background: #a5c88f;
  mask: url('/images/skills/python.svg') center / contain no-repeat;
  transform: rotate(-14deg);
}
.skill-slide--python .cover-art i:last-child {
  width: 37%; right: 6%; bottom: 6%;
  background: url('/images/skills/javascript.svg') center / contain no-repeat;
  transform: rotate(8deg);
}
.skill-slide--java {
  --cover: #f1a891;
  --cover-ink: #2a1714;
  --cover-accent: #321710;
}
.skill-slide--java .skill-cover {
  background: linear-gradient(180deg, #ffe0bf 0 37%, #f89476 64%, #b6342b 100%);
}
.skill-slide--java .cover-art::before {
  content: ''; position: absolute; inset: 44% -18% -16%;
  background: repeating-radial-gradient(ellipse at 66% 68%, #451e24 0 1px, transparent 2px 13px);
  opacity: .5; transform: skewY(-14deg);
}
.skill-slide--java .cover-art i:first-child {
  width: 90%; bottom: 1%; right: -6%; background: #381a20;
  mask: url('/images/skills/openjdk.svg') center / contain no-repeat;
  transform: rotate(12deg);
}
.skill-slide--cpp {
  --cover: #183158;
  --cover-ink: #fff9eb;
  --cover-accent: #c4e8ff;
}
.skill-slide--cpp .cover-art {
  background:
    linear-gradient(#071323 7%, transparent 48%),
    repeating-conic-gradient(from 30deg at 55% 72%, #315c8c 0 12deg, #142746 12deg 30deg);
}
.skill-slide--cpp .cover-art i:first-child {
  width: 78%;
  bottom: 5%;
  left: 12%;
  background: #d0eaff;
  mask: url('/images/skills/cplusplus.svg') center / contain no-repeat;
  transform: rotate(-10deg);
}
.skill-slide--cpp .skill-cover__title { text-shadow: 2px 3px 0 #071323; }

.skill-slide--frontend {
  --cover: #eee6d8;
  --cover-ink: #2d2140;
  --cover-accent: #4a356e;
  --cover-type: 17cqi;
}
.skill-slide--frontend .cover-art {
  background: linear-gradient(135deg, transparent 0 52%, #613d7252 52% 75%, #36294f 75%);
}
.skill-slide--frontend .cover-art i {
  width: 47%; background: #8e452f; left: 7%; bottom: 21%;
  mask: url('/images/skills/html5.svg') center / contain no-repeat;
  transform: rotate(-10deg);
}
.skill-slide--frontend .cover-art i:last-child {
  background: #eee6d8; left: auto; right: 5%; bottom: 6%;
  mask-image: url('/images/skills/css.svg'); transform: rotate(8deg);
}
.skill-slide--rust {
  --cover: #261915;
  --cover-ink: #f3dfbb;
  --cover-accent: #f3dfbb;
}
.skill-slide--rust .cover-art {
  background: repeating-linear-gradient(149deg,#fff0 0 13px,#d9874427 14px 15px),
    linear-gradient(155deg, transparent 40%, #87512c);
}
.skill-slide--rust .cover-art i:first-child {
  width: 115%; bottom: -9%; right: -25%;
  background: linear-gradient(128deg, #e8ba79, #b76b3a 60%, #f3d295);
  mask: url('/images/skills/rust.svg') center / contain no-repeat;
  transform: rotate(-12deg);
}
.skill-reel__position:not([hidden]) { position: relative; display: flex; width: max-content; gap: 5px; margin: 12px auto 0; }
[data-bio-reveal] { position: relative; }
.bio-mosaic { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .bio-mosaic-pending::before { content: ''; position: absolute; z-index: 3; inset: -1px; background: #0a0a0a; pointer-events: none; }
}

.dream-section .bio-mosaic-pending::before { background: var(--paper); }
.skill-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: repeating-conic-gradient(#fff8 0% 25%, transparent 0% 50%) 0 0 / 6px 6px;
}
@media (prefers-reduced-motion: no-preference) {
  .cover-settled .skill-cover::after { animation: cover-signal 1.45s steps(20, end); }
}
@keyframes cover-signal {
  0% { opacity: 0; clip-path: inset(0 0 100%); }
  24% { opacity: .55; clip-path: inset(12% 0 78%); }
  75% { opacity: .32; clip-path: inset(66% 0 23%); }
  100% { opacity: 0; clip-path: inset(100% 0 0); }
}

/* Transparent language control with a single action. */
.header__actions { display: flex; align-items: center; gap: 4px; }
.language-picker {
  --picker-ink: #f1f0ed;
  --picker-accent: #a8ed73;
  color: var(--picker-ink);
}
.lang-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 700 12px var(--font-mono), monospace;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lang-trigger::after {
  content: "";
  position: absolute;
  inset: auto 8px 7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.lang-current { min-width: 2ch; }
.lang-trigger__pixel { width: 6px; height: 6px; background: var(--picker-accent); }
.lang-trigger__arrow {
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
.lang-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.lang-trigger:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) { .lang-trigger:hover::after { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  .language-entering .lang-trigger__pixel { animation: language-pixel .86s cubic-bezier(.16,1,.3,1); }
  .language-entering .lang-trigger__arrow { animation: language-arrow .86s cubic-bezier(.16,1,.3,1); }
}
@keyframes language-pixel {
  25% { transform: rotate(90deg) scale(1.35); box-shadow: -5px 0 0 -1px var(--picker-accent), 5px 0 0 -1px var(--picker-accent); }
  100% { transform: rotate(180deg); box-shadow: none; }
}
@keyframes language-arrow {
  40% { transform: translateX(4px) rotate(45deg); opacity: .55; }
}
.header.is-pill .floating-language {
  --picker-ink: #151515;
  --picker-accent: #397128;
}
@media (max-width: 768px) {
  .header { overflow: visible; }
  .header__inner { gap: 8px; }
  .header.is-menu-open { background: transparent; }
  .header.is-menu-open .floating-language {
    --picker-ink: #151515;
    --picker-accent: #397128;
  }
  .footer-language { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lang-trigger::after { transition: none; } }

/* Repeating details use the same square and stipple as the page artwork. */
@media (prefers-reduced-motion: no-preference) {
  .js-motion :is(.section-heading, .dream-heading) {
    position: relative;
  }
  .js-motion :is(.section-heading, .dream-heading)::after {
    content: "";
    position: absolute;
    inset: auto auto -12px 0;
    width: min(100%, 96px);
    height: 2px;
    background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 8px);
    opacity: .4;
    transform: scaleX(0);
    transform-origin: left;
  }
  .js-motion :is(.section-heading, .dream-heading).is-in::after {
    animation: heading-stitch 1.4s cubic-bezier(.22,.75,.25,1) .16s both;
  }
  .js-motion .section-heading.is-in .section-mark {
    animation: heading-mark 1.25s cubic-bezier(.22,.75,.25,1) both;
  }

  .footer-wordmark {
    position: relative;
    padding-bottom: .08em;
  }
  .footer-wordmark::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: repeating-linear-gradient(90deg, #8aa780 0 5px, transparent 5px 8px);
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
  }
  .footer-wordmark.is-in::after {
    animation: footer-pixel-trace 1.8s cubic-bezier(.19,.73,.23,1) .24s both;
  }
}
@keyframes heading-stitch {
  0% { transform: scaleX(0); }
  68% { transform: scaleX(1); }
  100% { transform: scaleX(.68); opacity: .24; }
}
@keyframes heading-mark {
  from { transform: rotate(-90deg) scale(.7); opacity: .15; }
  to { transform: rotate(0) scale(1); opacity: 1; }
}
@keyframes footer-pixel-trace {
  0% { transform: scaleX(0); opacity: 0; }
  46% { opacity: .62; }
  80% { transform: scaleX(1); opacity: .45; }
  100% { transform: scaleX(1); opacity: .14; }
}

/* Small movements keep the printed, pixelated look of the page. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .header .nav-link,
  .mobile-menu__link,
  .mobile-menu__email,
  .bio-details a,
  .footer-wordmark,
  .lang-trigger,
  .header__menu {
    transition: translate .64s cubic-bezier(.22,.72,.24,1),
      opacity .56s ease, text-shadow .64s ease;
  }

  .header .nav-link:is(:hover, :focus-visible),
  .bio-details a:is(:hover, :focus-visible),
  .lang-trigger:is(:hover, :focus-visible),
  .header__menu:is(:hover, :focus-visible) {
    translate: 0 -2px;
  }

  .mobile-menu__link:is(:hover, :focus-visible),
  .mobile-menu__email:is(:hover, :focus-visible) {
    translate: 0 -3px;
  }

  .material-hero__line {
    transition: translate .84s cubic-bezier(.22,.72,.24,1), text-shadow .82s ease;
  }

  .material-hero__button:is(:hover, :focus-visible) .material-hero__line {
    translate: 0 -3px;
    text-shadow: 2px 3px 0 #b9b9b950, 4px 6px 0 #b9b9b926;
  }

  :is(.section-heading, .dream-heading) h2 {
    transition: translate .76s cubic-bezier(.22,.72,.24,1), text-shadow .72s ease;
  }

  :is(.section-heading, .dream-heading) h2:hover {
    translate: 3px 0;
    text-shadow: 2px 2px 0 #85857d40, 4px 4px 0 #85857d24;
  }

  .footer-wordmark:is(:hover, :focus-visible) {
    text-shadow: 3px 3px 0 #9dd88148, 6px 6px 0 #9dd88124;
  }

  .skill-cover {
    transition: translate .76s cubic-bezier(.22,.72,.24,1), border-color .72s ease;
  }

  .skill-reel__track:not(.is-dragging) .cover-settled .skill-cover:hover {
    translate: 0 -4px;
    border-color: color-mix(in srgb, var(--lime), transparent 62%);
  }
}

.dream-fragment {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dream-fragment:focus-visible { outline-offset: 6px; }
.dream-fragment__text { display: block; }
.dream-fragment__layer,
.dream-fragment__layer > span {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}
.dream-fragment.is-scattering .dream-fragment__text { opacity: 0; }
.dream-fragment__layer { z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .dream-fragment { transition: color .65s ease; }
  .dream-fragment.is-scattering::after {
    content: "";
    position: absolute;
    inset: auto 10% -7px 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, #2b5220 0 5px, transparent 5px 9px);
    transform-origin: left;
    animation: dream-signal 1.32s ease both;
    pointer-events: none;
  }
}
@keyframes dream-signal {
  0% { opacity: 0; transform: scaleX(.06); }
  42% { opacity: .55; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .dream-fragment:hover { color: #32532d; }
  .bio-details > div::after {
    content: "";
    position: absolute;
    inset: auto 16px 0;
    height: 1px;
    background: repeating-linear-gradient(90deg, #a8ed73 0 4px, transparent 4px 8px);
    opacity: .45;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .8s cubic-bezier(.22,.72,.24,1);
    pointer-events: none;
  }
  .bio-details > div:hover::after { transform: scaleX(1); }
  .bio-status .status-year { transition: color .7s ease; }
  .bio-status:hover .status-year { color: #b4d0a6; }
}

.skill-reel.is-looping .skill-reel__viewport {
  overflow: clip;
  touch-action: pan-y pinch-zoom;
}
.skill-reel.is-looping .skill-reel__track {
  overflow: visible;
  scroll-snap-type: none;
  touch-action: pan-y pinch-zoom;
}
.skill-reel.is-looping .skill-reel__viewport:focus-within {
  outline: 1px solid #a8ed73;
  outline-offset: -2px;
}
.skill-reel__position button {
  position: relative;
  width: 25px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #626262;
  cursor: pointer;
}
.skill-reel__position button::before {
  content: "";
  position: absolute;
  inset: 12px 4px;
  background: currentColor;
  transform: scaleX(.68);
}
.skill-reel__position button:is(:hover, :focus-visible, [aria-current="true"]) { color: var(--lime); }
.skill-reel__position button[aria-current="true"]::before { transform: scaleX(1); }

@media (prefers-reduced-motion: no-preference) {
  .skill-reel__position button { transition: color .35s ease; }
  .skill-reel__position button::before { transition: transform .5s cubic-bezier(.22,.72,.24,1); }
}


.dream-orb { display: none; }
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  .dream-orb:not([hidden]) {
    display: grid;
    width: min(100%, 540px);
    margin: clamp(28px, 4vw, 56px) 0 0;
    border-top: 1px solid #737b6d55;
  }
  .dream-orb canvas { display: block; width: 100%; height: auto; cursor: grab; }
  .dream-orb canvas.is-dragging { cursor: grabbing; }
  .dream-orb figcaption { font-size: .75rem; opacity: .75; text-align: center; }
}

/* Tactile feedback while preserving the existing focus outline. */
.skill-reel__position button:active::before { transform: scaleX(.45); }
.lang-trigger { border-radius: 2px; }
@media (hover: hover) and (pointer: fine) {
  .dream-orb canvas { background: radial-gradient(ellipse at center, #779c6612, transparent 68%); }
}
@media (prefers-reduced-motion: no-preference) {
  .lang-trigger:active { translate: 0 1px; }
}
