:root {
  --signal-orange: #ff5a1f;
  --signal-teal: #15949b;
  --signal-paper: #f3f3ef;
  --signal-line: rgba(255, 255, 255, 0.18);
  --signal-muted: rgba(255, 255, 255, 0.58);
}

::selection {
  color: #050505;
  background: var(--signal-orange);
}

.aw-scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 230;
  height: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--signal-orange);
  will-change: transform;
}

body:has(#loader:not(.loading--end)) .aw-scroll-progress,
body:has(#loader:not(.loading--end)) .aw-section-index {
  opacity: 0;
}

.aw-section-index {
  position: fixed;
  right: 6px;
  bottom: 22px;
  z-index: 80;
  width: 28px;
  display: block;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-family: "P", monospace;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: none;
  mix-blend-mode: difference;
}

.aw-section-index strong {
  color: #fff;
  font: inherit;
}

.aw-section-index span {
  display: none;
}

.aw-section-index::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(var(--section-progress, 0));
  transform-origin: left;
}

html.aw-motion [data-aw-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

html.aw-motion [data-aw-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Home: one full-screen signal becomes three project chapters while the source reveal runs. */
.signal-profile.signal-cinema {
  --signal-sequence-progress: 0;
  --signal-sticky-offset: 0px;
  position: relative;
  z-index: 4;
  width: 100%;
  height: 290svh;
  min-height: 1680px;
  overflow: visible;
  color: #fff;
  background: #000;
}

.signal-cinema__sticky {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(0, var(--signal-sticky-offset), 0);
  will-change: transform;
}

.signal-cinema .signal-profile__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(calc(1.045 - var(--signal-sequence-progress) * 0.025));
  transform-origin: center;
  will-change: transform;
}

.signal-cinema__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.signal-cinema__stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 80px 48px 34px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.signal-cinema__topline,
.signal-frame__eyebrow,
.signal-frame__trace {
  font-family: "P", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signal-cinema__topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  color: rgba(255, 255, 255, 0.66);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 9px;
  line-height: 1.2;
}

.signal-cinema__frames {
  position: relative;
  flex: 1;
  min-height: 0;
}

.signal-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 68px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px);
  transition:
    opacity 260ms ease,
    visibility 260ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.signal-frame.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.signal-frame__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
}

.signal-frame__eyebrow {
  margin: 0 0 22px;
  color: var(--signal-orange);
  font-size: 10px;
  line-height: 1.3;
}

.signal-frame:nth-child(2) .signal-frame__eyebrow {
  color: #fff;
}

.signal-frame:nth-child(3) .signal-frame__eyebrow {
  color: #4ad5d9;
}

.signal-frame__copy h2 {
  margin: 0;
  color: #fff;
  font-family: "Monument", sans-serif;
  font-size: 112px;
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signal-frame__trace {
  width: min(720px, 64vw);
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
  font-size: 9px;
  line-height: 1;
}

.signal-frame__trace span {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.signal-frame__trace span:first-child {
  padding-left: 0;
  border-left: 0;
}

.signal-cinema__meter {
  position: absolute;
  right: 48px;
  bottom: 26px;
  left: 48px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.signal-cinema__meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--signal-orange);
  transform: scaleX(var(--signal-sequence-progress));
  transform-origin: left;
  will-change: transform;
}

.practice-log {
  position: relative;
  z-index: 3;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  color: #fff;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.practice-log__inner {
  width: min(1160px, calc(100% - 80px));
  margin: 0 auto;
  padding: 92px 0 64px;
}

.practice-log__header {
  display: grid;
  grid-template-columns: minmax(110px, .4fr) minmax(0, 1fr) minmax(250px, .75fr);
  gap: 36px;
  align-items: end;
  padding-bottom: 56px;
}

.practice-log__eyebrow,
.practice-entry__meta,
.practice-entry__stack,
.practice-log__foot {
  font-family: "P", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.practice-log__eyebrow {
  margin: 0;
  color: var(--signal-orange);
  font-size: 10px;
  line-height: 1.3;
}

.practice-log__header h2 {
  margin: 0;
  color: #fff;
  font-family: "Monument", sans-serif;
  font-size: 64px;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.practice-log__header > p:last-child {
  max-width: 38ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.58;
}

.practice-log__entries {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.practice-entry {
  --entry-accent: var(--signal-orange);
  position: relative;
  isolation: isolate;
  min-height: 184px;
  display: grid;
  grid-template-columns: 150px minmax(250px, 0.82fr) minmax(300px, 1fr);
  gap: 20px 36px;
  align-items: start;
  padding: 38px 0 34px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.practice-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--entry-accent);
  opacity: 0.13;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.practice-entry::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 84px;
  height: 2px;
  background: var(--entry-accent);
  transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.practice-entry--teal {
  --entry-accent: var(--signal-teal);
}

.practice-entry:hover::before,
.practice-entry:focus-within::before {
  transform: scaleY(1);
}

.practice-entry:hover::after,
.practice-entry:focus-within::after {
  width: 100%;
}

.practice-entry__meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.3;
}

.practice-entry h3 {
  margin: 0;
  color: #fff;
  font-family: "Monument", sans-serif;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 320ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.practice-entry:hover h3,
.practice-entry:focus-within h3 {
  color: var(--entry-accent);
  transform: translateX(8px);
}

.practice-entry > p {
  max-width: 55ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.58;
}

.practice-entry__stack {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.3;
}

.practice-log__foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  line-height: 1.3;
}

.practice-log__foot a {
  position: relative;
  color: #fff;
}

.practice-log__foot a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: var(--signal-orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms cubic-bezier(0.77, 0, 0.175, 1);
}

.practice-log__foot a:hover::after,
.practice-log__foot a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* A flat-color scroll handoff connects the white statement to the black field notes. */
.phase-shift {
  --phase-orange: 0;
  --phase-teal: 0;
  --phase-black: 0;
  --phase-sticky-offset: 0px;
  position: relative;
  z-index: 4;
  width: 100vw;
  height: 230svh;
  min-height: 1380px;
  margin-left: calc(50% - 50vw);
  color: #fff;
  background: var(--signal-paper);
}

.phase-shift__sticky {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(0, var(--phase-sticky-offset), 0);
  will-change: transform;
}

.phase-shift__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  will-change: transform;
}

.phase-shift__wash--orange {
  background: var(--signal-orange);
  transform: scaleY(var(--phase-orange));
}

.phase-shift__wash--teal {
  z-index: 1;
  background: var(--signal-teal);
  transform: scaleY(var(--phase-teal));
}

.phase-shift__wash--black {
  z-index: 2;
  background:
    linear-gradient(90deg, #050505 2px, transparent 1%) center / 3px 3px,
    linear-gradient(#050505 2px, transparent 1%) center / 3px 3px,
    #222;
  transform: scaleY(var(--phase-black));
}

.phase-shift__glyphs {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  opacity: var(--phase-black);
  pointer-events: none;
}

.phase-shift__meta,
.phase-shift__caption {
  position: absolute;
  z-index: 4;
  right: 48px;
  left: 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  font-family: "P", monospace;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

.phase-shift__meta {
  top: 82px;
  padding-bottom: 14px;
  border-bottom: 1px solid currentColor;
}

.phase-shift__caption {
  bottom: 28px;
  margin: 0;
}

.phase-shift__title {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Monument", sans-serif;
  font-size: 148px;
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

.phase-shift__title span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 220ms ease,
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.phase-shift__title span.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* A restrained playground makes the stack tangible without becoming another skills list. */
.stack-lab {
  position: relative;
  z-index: 4;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  color: #fff;
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stack-lab__inner {
  width: min(1160px, calc(100% - 80px));
  margin: 0 auto;
  padding: 110px 0 76px;
}

.stack-lab__header {
  display: grid;
  grid-template-columns: 0.52fr minmax(420px, 1fr) minmax(260px, 0.7fr);
  gap: 44px;
  align-items: end;
  padding-bottom: 54px;
}

.stack-lab__header > p:first-child,
.stack-lab__foot,
.stack-lab__axis,
.stack-token {
  font-family: "P", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stack-lab__header > p:first-child {
  margin: 0;
  color: var(--signal-teal);
  font-size: 10px;
  line-height: 1.3;
}

.stack-lab__header h2 {
  margin: 0;
  color: #fff;
  font-family: "Monument", sans-serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stack-lab__header > p:last-child {
  max-width: 38ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  line-height: 1.58;
}

.stack-lab__field {
  position: relative;
  height: 500px;
  overflow: hidden;
  background:
    linear-gradient(90deg, #050505 2px, transparent 1%) center / 3px 3px,
    linear-gradient(#050505 2px, transparent 1%) center / 3px 3px,
    #171717;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  touch-action: pan-y;
}

.stack-lab__field::before,
.stack-lab__field::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.stack-lab__network {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stack-lab__orbit {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.stack-lab__orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  background: #fff;
}

.stack-lab__orbit--one {
  width: 170px;
  animation: stack-orbit-clockwise 13s linear infinite;
}

.stack-lab__orbit--two {
  width: 310px;
  border-style: dashed;
  animation: stack-orbit-counter 21s linear infinite;
}

.stack-lab__orbit--two::after {
  background: var(--signal-orange);
}

.stack-lab__orbit--three {
  width: 455px;
  animation: stack-orbit-clockwise 31s linear infinite;
}

.stack-lab__orbit--three::after {
  background: #4ad5d9;
}

.stack-lab__core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 118px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #fff;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  font-family: "P", monospace;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px rgba(5, 5, 5, .72);
}

.stack-lab__core span {
  color: #4ad5d9;
  font-size: 8px;
}

.stack-lab__core strong {
  font-family: "Monument", sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.05;
}

.stack-lab__core i {
  position: absolute;
  inset: 8px;
  border: 1px solid var(--signal-orange);
  border-radius: 50%;
  animation: stack-core-pulse 2.4s ease-in-out infinite alternate;
}

.stack-lab__field::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.stack-lab__field::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.stack-lab__axis {
  position: absolute;
  z-index: 2;
  color: rgba(255, 255, 255, 0.3);
  font-size: 8px;
  line-height: 1;
  pointer-events: none;
}

.stack-lab__axis--x {
  right: 12px;
  bottom: calc(50% + 10px);
}

.stack-lab__axis--y {
  top: 12px;
  left: calc(50% + 12px);
}

.stack-token {
  --drag-x: 0px;
  --drag-y: 0px;
  position: absolute;
  z-index: 3;
  top: var(--y);
  left: var(--x);
  min-width: 112px;
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 0;
  font-size: 10px;
  line-height: 1;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform: translate(calc(-50% + var(--drag-x)), calc(-50% + var(--drag-y))) rotate(var(--r));
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.stack-token__mark {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: grid;
  place-items: center;
  color: #050505;
  background: #fff;
  font-size: 7px;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, transform 260ms ease;
}

.stack-token--orange .stack-token__mark {
  background: var(--signal-orange);
}

.stack-token--teal .stack-token__mark {
  background: #4ad5d9;
}

.stack-token--orange {
  border-color: var(--signal-orange);
}

.stack-token--teal {
  border-color: #4ad5d9;
}

.stack-token:hover,
.stack-token:focus-visible,
.stack-token.is-dragging {
  color: #050505;
  background: #fff;
  border-color: #fff;
  outline: 0;
}

.stack-token:hover .stack-token__mark,
.stack-token:focus-visible .stack-token__mark,
.stack-token.is-dragging .stack-token__mark {
  color: #fff;
  background: #050505;
  transform: rotate(90deg);
}

.stack-token:focus-visible {
  box-shadow: 0 0 0 3px #050505, 0 0 0 5px #fff;
}

.stack-token.is-dragging {
  z-index: 5;
  cursor: grabbing;
}

.stack-lab__foot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr)) minmax(190px, auto);
  color: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 9px;
  line-height: 1.35;
  overflow: hidden;
}

.stack-lab__foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18%;
  height: 2px;
  background: var(--signal-orange);
  animation: stack-foot-scan 6s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
}

.stack-lab__foot span,
.stack-lab__foot strong {
  min-height: 66px;
  margin: 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  font: inherit;
  font-weight: 400;
}

.stack-lab__foot span:first-child {
  padding-left: 0;
}

.stack-lab__foot span i {
  color: var(--signal-orange);
  font-style: normal;
}

.stack-lab__foot span:nth-child(even) i {
  color: #4ad5d9;
}

.stack-lab__foot strong {
  justify-content: flex-end;
  padding-right: 0;
  color: #fff;
  border-right: 0;
  text-align: right;
}

@keyframes stack-foot-scan {
  to {
    transform: translateX(455%);
  }
}

@keyframes stack-orbit-clockwise {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes stack-orbit-counter {
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes stack-core-pulse {
  to {
    inset: 14px;
    opacity: .35;
  }
}

/* Project pages inherit the same moving character field without reducing clarity. */
.repo-page {
  overflow-x: hidden;
}

.repo-page.project-archive-page .repo-hero {
  min-height: calc(84svh - 72px);
}

.repo-page .hero-site-glitch-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.26;
  pointer-events: none;
}

.repo-page .project-home-header,
.repo-page .project-archive-main,
.repo-page .project-case-main,
.repo-page .project-footer {
  position: relative;
  z-index: 2;
}

.repo-page .project-home-header {
  position: fixed !important;
  z-index: 240;
}

.repo-index-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--project-line);
  border-bottom: 1px solid var(--project-line);
}

.repo-index-band > div {
  min-height: 92px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.repo-index-band > div + div {
  border-left: 1px solid var(--project-line);
}

.repo-index-band span {
  color: rgba(255, 255, 255, 0.44);
  font-family: "P", sans-serif;
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
}

.repo-index-band strong {
  color: #fff;
  font-family: "Monument", sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.repo-index-band > div:nth-child(1) strong,
.repo-index-band > div:nth-child(3) strong {
  color: var(--signal-orange);
}

.repo-index-band > div:nth-child(2) strong {
  color: var(--signal-teal);
}

.repo-page .repo-filters {
  border-top: 0;
}

.repo-page .repo-filter.active {
  color: var(--signal-orange);
}

.repo-page .repo-card::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: 52px;
  left: -12px;
  width: 2px;
  background: var(--signal-orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.repo-page .repo-card:nth-child(even)::before {
  background: var(--signal-teal);
}

.repo-page .repo-card:hover::before,
.repo-page .repo-card:focus-visible::before {
  transform: scaleY(1);
}

.repo-page .repo-card:hover .repo-card-index,
.repo-page .repo-card:focus-visible .repo-card-index {
  color: var(--signal-orange);
}

.repo-page .repo-card:nth-child(even):hover .repo-card-index,
.repo-page .repo-card:nth-child(even):focus-visible .repo-card-index {
  color: var(--signal-teal);
}

.repo-page .repo-thumb::after {
  border-color: rgba(255, 255, 255, 0.18);
  transition: border-color 320ms ease, inset 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.repo-page .repo-card:hover .repo-thumb::after,
.repo-page .repo-card:focus-visible .repo-thumb::after {
  inset: 8px;
  border-color: rgba(255, 255, 255, 0.48);
}

.project-case-page .project-media-frame {
  position: relative;
  overflow: hidden;
  box-shadow: 14px 14px 0 rgba(255, 90, 31, 0.14);
}

.project-case-page .project-media-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  display: block;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.project-case-page .project-media-frame::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 48px;
  height: 3px;
  display: block;
  background: var(--signal-orange);
  pointer-events: none;
}

.project-case-page .project-media-scan {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  height: 1px;
  display: block;
  background: var(--signal-teal);
  opacity: 0;
  pointer-events: none;
  animation: project-media-scan 4.8s ease-in-out infinite;
}

.project-case-page .project-detail-index,
.project-case-page .project-detail-kicker .repo-eyebrow {
  color: var(--signal-orange);
}

.project-case-page .project-brief-heading .repo-eyebrow {
  color: #a53a12;
}

.project-case-page .project-summary::first-letter {
  color: #a53a12;
}

.project-blueprint {
  padding-top: 116px;
  display: grid;
  grid-template-columns: minmax(220px, 0.33fr) minmax(0, 0.67fr);
  gap: 72px;
}

.project-blueprint .project-section-label h2 {
  max-width: 7ch;
  font-size: 64px;
}

.project-flow {
  border-top: 1px solid var(--project-line);
}

.project-flow-step {
  --flow-accent: var(--signal-orange);
  position: relative;
  min-height: 136px;
  display: grid;
  grid-template-columns: 52px 150px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--project-line);
}

.project-flow-step:nth-child(2) {
  --flow-accent: var(--signal-teal);
}

.project-flow-step::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--flow-accent);
  transition: width 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-flow-step:hover::before {
  width: 100%;
}

.project-flow-step > span {
  color: var(--flow-accent);
  font-family: "P", sans-serif;
  font-size: 10px;
  line-height: 1.3;
}

.project-flow-step h3 {
  margin: 0;
  color: #fff;
  font-family: "Monument", sans-serif;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-flow-step p {
  max-width: 58ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.58;
}

.project-flow-step p strong {
  color: #fff;
  font-weight: 500;
}

.project-case-page .project-case-notes {
  padding-top: 146px;
}

.project-case-page .project-process-card p {
  color: rgba(255, 255, 255, 0.72);
}

.project-case-page .project-process-card h3 {
  color: #fff;
}

.project-case-page .project-process-card {
  position: relative;
  transition: padding 360ms cubic-bezier(0.22, 1, 0.36, 1), background-color 240ms ease;
}

.project-case-page .project-process-card:hover {
  padding-right: 18px;
  padding-left: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.project-case-page .project-process-card:nth-child(1) .project-process-icon,
.project-case-page .project-process-card:nth-child(3) .project-process-icon {
  color: var(--signal-orange);
}

.project-case-page .project-process-card:nth-child(2) .project-process-icon {
  color: var(--signal-teal);
}

@keyframes project-media-scan {
  0%, 10% {
    top: 0;
    opacity: 0;
  }

  18%, 82% {
    opacity: 0.72;
  }

  90%, 100% {
    top: 100%;
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .practice-log__inner,
  .stack-lab__inner {
    width: min(100% - 60px, 1160px);
  }

  .signal-cinema__stage {
    padding-right: 30px;
    padding-left: 30px;
  }

  .signal-frame {
    gap: 42px;
  }

  .signal-frame__copy h2 {
    font-size: 72px;
  }

  .signal-cinema__meter,
  .phase-shift__meta,
  .phase-shift__caption {
    right: 30px;
    left: 30px;
  }

  .phase-shift__title {
    font-size: 118px;
  }

  .practice-log__header {
    grid-template-columns: 0.35fr minmax(320px, 0.9fr) minmax(260px, 0.7fr);
  }

  .practice-log__header h2 {
    font-size: 64px;
  }

  .practice-entry {
    grid-template-columns: 110px minmax(230px, 0.75fr) minmax(280px, 1fr);
    gap: 30px;
  }

  .stack-lab__header {
    grid-template-columns: 0.35fr minmax(370px, 0.9fr) minmax(250px, 0.7fr);
    gap: 32px;
  }

  .stack-lab__header h2 {
    font-size: 62px;
  }

  .project-blueprint {
    gap: 48px;
  }

  .project-blueprint .project-section-label h2 {
    font-size: 52px;
  }
}

@media (max-width: 820px) {
  .aw-section-index {
    display: none;
  }

  .practice-log__inner,
  .stack-lab__inner {
    width: calc(100% - 44px);
  }

  .signal-profile.signal-cinema {
    height: 270svh;
    min-height: 1500px;
  }

  .signal-cinema__stage {
    padding: 72px 22px 28px;
  }

  .signal-frame {
    padding: 0 0 74px;
  }

  .signal-frame__copy {
    max-width: 560px;
  }

  .signal-frame__copy h2 {
    font-size: 70px;
  }

  .signal-frame__eyebrow {
    margin-bottom: 14px;
  }

  .signal-frame__trace {
    width: min(620px, 100%);
  }

  .signal-cinema__meter,
  .phase-shift__meta,
  .phase-shift__caption {
    right: 22px;
    left: 22px;
  }

  .phase-shift {
    height: 200svh;
    min-height: 1200px;
  }

  .phase-shift__title {
    font-size: 82px;
  }

  .practice-log__inner {
    padding-top: 82px;
  }

  .practice-log__header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .practice-log__header h2 {
    font-size: 52px;
  }

  .practice-log__header > p:last-child {
    max-width: 52ch;
  }

  .practice-entry {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .practice-entry > p,
  .practice-entry__stack {
    grid-column: 2;
  }

  .practice-entry h3 {
    font-size: 29px;
  }

  .stack-lab__inner {
    padding-top: 82px;
  }

  .stack-lab__header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stack-lab__header h2 {
    font-size: 52px;
  }

  .stack-lab__header > p:last-child {
    max-width: 52ch;
  }

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

  .stack-lab__foot strong {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    text-align: left;
  }

  .repo-index-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repo-page.project-archive-page .repo-hero {
    min-height: calc(84svh - 68px);
  }

  .repo-index-band > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--project-line);
  }

  .repo-index-band > div:nth-child(4) {
    border-top: 1px solid var(--project-line);
  }

  .project-blueprint {
    padding-top: 90px;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .project-blueprint .project-section-label h2 {
    max-width: none;
    font-size: 48px;
  }

  .project-flow-step {
    grid-template-columns: 38px 126px minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 540px) {
  .repo-page .project-main-navigation li:nth-child(2) {
    display: list-item;
  }

  .repo-page .project-main-navigation ul {
    gap: 9px;
  }

  .repo-page .project-main-navigation a {
    font-size: 9px;
  }

  .practice-log__inner,
  .stack-lab__inner {
    width: calc(100% - 36px);
  }

  .signal-profile.signal-cinema {
    height: 260svh;
    min-height: 1420px;
  }

  .signal-cinema__sticky {
    min-height: 540px;
  }

  .signal-cinema__stage {
    padding: 68px 18px 24px;
  }

  .signal-cinema__topline {
    gap: 12px;
    font-size: 8px;
  }

  .signal-frame {
    padding: 0 0 68px;
  }

  .signal-frame__copy h2 {
    font-size: 52px;
  }

  .signal-frame__trace {
    width: 100%;
    margin-top: 20px;
    font-size: 8px;
  }

  .signal-frame__trace span {
    min-height: 42px;
    padding: 0 8px;
  }

  .signal-cinema__meter,
  .phase-shift__meta,
  .phase-shift__caption {
    right: 18px;
    left: 18px;
  }

  .phase-shift {
    height: 180svh;
    min-height: 1050px;
  }

  .phase-shift__sticky {
    min-height: 540px;
  }

  .phase-shift__meta {
    top: 72px;
  }

  .phase-shift__title {
    font-size: 54px;
  }

  .practice-log__inner {
    padding: 68px 0 50px;
  }

  .practice-log__header {
    padding-bottom: 38px;
  }

  .practice-log__header h2 {
    font-size: 42px;
  }

  .practice-entry {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 0;
  }

  .practice-entry > p,
  .practice-entry__stack {
    grid-column: 1;
  }

  .practice-entry h3 {
    font-size: 27px;
  }

  .practice-log__foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .stack-lab__inner {
    padding: 68px 0 50px;
  }

  .stack-lab__header {
    padding-bottom: 38px;
  }

  .stack-lab__header h2 {
    font-size: 42px;
  }

  .stack-lab__field {
    height: 520px;
  }

  .stack-token {
    top: var(--my);
    left: var(--mx);
    min-width: 94px;
    min-height: 44px;
    padding: 0 13px;
    font-size: 8px;
  }

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

  .stack-lab__foot span,
  .stack-lab__foot strong {
    min-height: 54px;
    padding: 0 8px;
  }

  .stack-lab__foot span:first-child,
  .stack-lab__foot strong {
    padding-left: 0;
  }

  .repo-index-band > div {
    min-height: 78px;
    padding: 16px 14px;
  }

  .repo-page.project-archive-page .repo-hero {
    min-height: 72svh;
  }

  .repo-page .repo-card::before {
    left: -6px;
  }

  .project-case-page .project-media-frame {
    box-shadow: 8px 8px 0 rgba(255, 90, 31, 0.14);
  }

  .project-blueprint .project-section-label h2 {
    font-size: 38px;
  }

  .project-flow-step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .project-flow-step p {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aw-scroll-progress,
  .aw-section-index {
    display: none;
  }

  html.aw-motion [data-aw-reveal] {
    opacity: 1;
    transform: none;
  }

  .signal-profile.signal-cinema,
  .phase-shift {
    height: auto;
    min-height: 0;
  }

  .signal-cinema__sticky,
  .phase-shift__sticky {
    position: relative;
    height: auto;
  }

  .signal-cinema__sticky {
    min-height: 0;
  }

  .signal-cinema .signal-profile__media {
    opacity: 0.42;
    transform: none;
  }

  .signal-cinema__stage {
    position: relative;
    min-height: 100svh;
  }

  .signal-cinema__frames {
    display: grid;
    gap: 80px;
  }

  .signal-frame {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .phase-shift__sticky {
    min-height: 72svh;
    background:
      linear-gradient(90deg, #050505 2px, transparent 1%) center / 3px 3px,
      linear-gradient(#050505 2px, transparent 1%) center / 3px 3px,
      #222;
  }

  .phase-shift__wash {
    display: none;
  }

  .phase-shift__glyphs {
    display: none;
  }

  .phase-shift__title {
    position: relative;
    min-height: 72svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .phase-shift__title span {
    opacity: 1;
    transform: none;
  }

  .stack-token {
    transition: none;
  }

  .stack-lab__orbit,
  .stack-lab__core i {
    animation: none;
  }

  .project-case-page .project-media-scan {
    animation: none;
  }
}

@media (max-width: 560px) {
  .stack-lab__orbit--one {
    width: 132px;
  }

  .stack-lab__orbit--two {
    width: 244px;
  }

  .stack-lab__orbit--three {
    width: 356px;
  }

  .stack-lab__core {
    width: 88px;
    gap: 5px;
    box-shadow: 0 0 0 7px rgba(5, 5, 5, .72);
  }

  .stack-lab__core strong {
    font-size: 9px;
  }

  .stack-token {
    gap: 6px;
  }

  .stack-token__mark {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack-lab__orbit,
  .stack-lab__core i {
    animation: none !important;
  }
}
