:root {
  --void: #050608;
  --void-2: #0a0d10;
  --ink: #e8e7d7;
  --muted: #818679;
  --line: rgba(232, 231, 215, 0.12);
  --phosphor: #b7ff61;
  --amber: #c98b3a;
  --cyan: #5dc4d7;
  --red: #b85252;
  --card: rgba(8, 11, 13, 0.78);
  --shadow: 0 28px 120px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

::selection {
  color: var(--phosphor);
  background: rgba(0, 0, 0, 0.88);
  text-shadow: 0 0 12px rgba(183, 255, 97, 0.4);
}

html {
  min-height: 100%;
  background: var(--void);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(93, 196, 215, 0.13), transparent 27rem),
    radial-gradient(circle at 78% 0%, rgba(183, 255, 97, 0.08), transparent 22rem),
    linear-gradient(135deg, #050608 0%, #090d0e 46%, #12100c 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(232, 231, 215, 0.032) 1px, transparent 1px),
    linear-gradient(rgba(232, 231, 215, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 33%, rgba(183, 255, 97, 0.018) 33% 34%, transparent 34% 100%);
  background-size: 40px 40px, 40px 40px, 280px 100%;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 86%);
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

body::after {
  position: fixed;
  right: -12rem;
  bottom: -15rem;
  z-index: -1;
  width: 44rem;
  height: 44rem;
  content: "";
  background:
    repeating-conic-gradient(
      from 12deg,
      rgba(183, 255, 97, 0.08) 0deg 3deg,
      transparent 3deg 10deg
    );
  border-radius: 50%;
  opacity: 0.42;
  filter: blur(0.2px);
}

a {
  color: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 4px
    ),
    repeating-radial-gradient(circle at 12% 17%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}

body.trace-mode .grain {
  box-shadow:
    inset 0 0 0 1px rgba(183, 255, 97, 0.28),
    inset 0 0 42px rgba(183, 255, 97, 0.06);
}

.scan-beam {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      transparent 0,
      transparent 42%,
      rgba(183, 255, 97, 0.055) 50%,
      transparent 58%,
      transparent 100%
    );
  opacity: 0.4;
  transform: translateY(-120%);
  animation: page-scan 18s linear infinite;
  mix-blend-mode: screen;
}

.easter-egg {
  position: fixed;
  left: 18px;
  bottom: 14px;
  z-index: 11;
  padding: 8px 10px;
  color: var(--void);
  font-family: "Azeret Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  background: var(--phosphor);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

body.signal-open .easter-egg {
  opacity: 0.86;
  transform: translateY(0);
}

.poem-burst {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 11;
  display: grid;
  gap: 5px;
  color: rgba(232, 231, 215, 0.82);
  font-family: "Azeret Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.poem-burst span {
  width: max-content;
  max-width: calc(100vw - 36px);
  padding: 5px 7px;
  background: rgba(5, 6, 8, 0.78);
  border: 1px solid rgba(183, 255, 97, 0.18);
  box-shadow: 0 0 24px rgba(183, 255, 97, 0.08);
}

body.poem-open .poem-burst {
  opacity: 1;
  transform: translateY(0);
}

.sudo-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 54px);
  background:
    radial-gradient(circle at 20% 18%, rgba(183, 255, 97, 0.14), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(93, 196, 215, 0.1), transparent 22rem),
    rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.sudo-overlay:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.sudo-terminal {
  position: relative;
  width: min(980px, 100%);
  min-height: min(720px, calc(100vh - 40px));
  padding: 48px 24px 42px;
  color: rgba(232, 231, 215, 0.88);
  background:
    linear-gradient(rgba(183, 255, 97, 0.035) 50%, transparent 50%) 0 0 / 100% 4px,
    linear-gradient(135deg, rgba(5, 8, 6, 0.96), rgba(8, 11, 13, 0.96));
  border: 1px solid rgba(183, 255, 97, 0.28);
  box-shadow:
    0 0 0 1px rgba(232, 231, 215, 0.05) inset,
    0 0 80px rgba(183, 255, 97, 0.1),
    0 40px 130px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

.sudo-terminal::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(183, 255, 97, 0.08), transparent);
  opacity: 0.24;
  transform: translateX(-100%);
  animation: terminal-sweep 4.8s linear infinite;
  pointer-events: none;
}

.sudo-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  color: rgba(232, 231, 215, 0.48);
  font-family: "Azeret Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  background: rgba(183, 255, 97, 0.07);
  border-bottom: 1px solid rgba(183, 255, 97, 0.14);
}

.sudo-chrome span {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(232, 231, 215, 0.28);
  border-radius: 50%;
}

.sudo-chrome strong {
  margin-left: 8px;
  font-weight: 400;
}

.sudo-output {
  position: relative;
  z-index: 1;
  min-height: 520px;
  margin: 0;
  white-space: pre-wrap;
  color: rgba(183, 255, 97, 0.86);
  font-family: "Azeret Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: clamp(0.74rem, 1.65vw, 0.98rem);
  line-height: 1.65;
  text-shadow: 0 0 18px rgba(183, 255, 97, 0.13);
}

.sudo-output::after {
  display: inline-block;
  width: 0.62em;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.18em;
  content: "";
  background: currentColor;
  animation: cursor-blink 800ms steps(1) infinite;
}

.sudo-hint {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  margin: 0;
  color: rgba(232, 231, 215, 0.34);
  font-family: "Azeret Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 180ms ease;
}

.sudo-overlay.is-complete .sudo-hint {
  opacity: 1;
}

.site-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 92px;
}

.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: min(480px, 70vw);
  color: rgba(183, 255, 97, 0.18);
  content: "0x6f 0x62 0x73 0x63 0x75 0x72 0x65 0x62 0x69 0x74";
  font-family: "Azeret Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-align: right;
}

.hero::after {
  position: absolute;
  top: 50%;
  right: clamp(-150px, -7vw, -40px);
  z-index: -1;
  width: min(58vw, 620px);
  aspect-ratio: 846 / 534;
  content: "";
  background: url("assets/obscurebit-logo-light-cropped.png") center / contain no-repeat;
  opacity: 0.045;
  transform: translateY(-47%) rotate(-5deg);
  filter: blur(0.2px);
  mix-blend-mode: screen;
  animation: ghost-breathe 9s ease-in-out infinite;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 28px;
}

.eyebrow,
.project-kind,
.project-number,
.manifest span,
.site-footer {
  font-family: "Azeret Mono", "IBM Plex Mono", "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-action {
  font-family: "Azeret Mono", "IBM Plex Mono", "Courier New", monospace;
  letter-spacing: 0.06em;
}

.project-meta {
  width: max-content;
  max-width: 100%;
  margin-bottom: 10px;
  color: rgba(183, 255, 97, 0.72);
  font-family: "Azeret Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.trace-data {
  position: absolute;
  top: 50px;
  left: 22px;
  right: 22px;
  z-index: 2;
  color: rgba(183, 255, 97, 0.82);
  font-family: "Azeret Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

body.trace-mode .trace-data {
  padding: 5px 7px;
  background: rgba(5, 6, 8, 0.72);
  border-left: 2px solid rgba(183, 255, 97, 0.72);
  opacity: 1;
  transform: translateY(0);
}

body.trace-mode .trace-data::before {
  content: "[trace] ";
  color: rgba(232, 231, 215, 0.64);
}

body.trace-mode .project-card {
  border-color: rgba(183, 255, 97, 0.52);
  box-shadow:
    0 0 0 1px rgba(183, 255, 97, 0.08) inset,
    0 28px 120px rgba(0, 0, 0, 0.62);
}

body.trace-mode .project-card::after {
  box-shadow:
    0 0 0 1px rgba(183, 255, 97, 0.08),
    -18px 34px 0 rgba(183, 255, 97, 0.05);
}

body.trace-mode .manifest p::after {
  content: " --trace";
  color: rgba(183, 255, 97, 0.72);
}

.eyebrow {
  width: max-content;
  margin: 0;
  padding: 7px 10px 6px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--void);
  font-size: 0.68rem;
  background: var(--phosphor);
  box-shadow: 7px 7px 0 rgba(183, 255, 97, 0.12);
}

.online-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--void);
  box-shadow:
    0 0 0 1px rgba(5, 6, 8, 0.42),
    0 0 12px rgba(5, 6, 8, 0.72);
  animation: led-pulse 4.2s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.6rem, 9.6vw, 9rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
  text-shadow:
    0 0 28px rgba(183, 255, 97, 0.08),
    -1px 0 rgba(184, 82, 82, 0.24),
    1px 0 rgba(93, 196, 215, 0.18);
  text-wrap: balance;
}

.intro {
  max-width: 390px;
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.45;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  letter-spacing: 0.015em;
}

.manifest {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 26px;
  color: var(--muted);
}

.manifest p {
  max-width: 560px;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.45;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
}

.manifest span {
  flex: 0 0 auto;
  font-size: 0.68rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.project-card {
  position: relative;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  min-height: 360px;
  display: flex;
  grid-column: span 2;
  flex-direction: column;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(var(--phosphor), var(--phosphor)) top left / 18px 1px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) top left / 1px 18px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) top right / 18px 1px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) top right / 1px 18px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) bottom left / 18px 1px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) bottom left / 1px 18px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) bottom right / 18px 1px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) bottom right / 1px 18px no-repeat,
    var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow: hidden;
  isolation: isolate;
  animation: card-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--delay, 0ms);
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.project-card::before {
  position: absolute;
  inset: auto -16% -34% -16%;
  z-index: -1;
  height: 58%;
  content: "";
  background: var(--accent, var(--phosphor));
  clip-path: polygon(0 58%, 100% 36%, 100% 100%, 0 100%);
  opacity: 0.16;
  transition: transform 220ms ease, opacity 220ms ease;
}

.project-card::after {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 5.5rem;
  height: 5.5rem;
  content: "";
  border: 1px solid rgba(232, 231, 215, 0.22);
  background:
    linear-gradient(90deg, transparent 48%, rgba(232, 231, 215, 0.18) 49% 51%, transparent 52%),
    linear-gradient(transparent 48%, rgba(232, 231, 215, 0.18) 49% 51%, transparent 52%),
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(183, 255, 97, 0.08) 8px 9px);
  opacity: 0.5;
}

.project-card:where(:hover, :focus-visible) {
  background:
    linear-gradient(var(--phosphor), var(--phosphor)) top left / 22px 1px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) top left / 1px 22px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) top right / 22px 1px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) top right / 1px 22px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) bottom left / 22px 1px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) bottom left / 1px 22px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) bottom right / 22px 1px no-repeat,
    linear-gradient(var(--phosphor), var(--phosphor)) bottom right / 1px 22px no-repeat,
    rgba(10, 14, 16, 0.95);
  border-color: rgba(183, 255, 97, 0.36);
  transform:
    perspective(900px)
    translateY(-5px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
}

.project-card:where(:hover, :focus-visible)::before {
  opacity: 0.85;
  transform: translateY(-8px);
}

body.trace-mode .project-card:where(:hover, :focus-visible) .project-meta {
  opacity: 1;
  transform: translateY(0);
}

.project-card:focus-visible {
  outline: 3px solid var(--phosphor);
  outline-offset: 4px;
}

.project-card--dj {
  --accent: var(--phosphor);
}

.project-card:nth-child(2) {
  --delay: 90ms;
}

.project-card:nth-child(3) {
  --delay: 180ms;
}

.project-card:nth-child(4) {
  --delay: 270ms;
}

.project-card:nth-child(5) {
  --delay: 360ms;
}

.project-card--oav {
  --accent: var(--cyan);
}

.project-card--bits {
  --accent: var(--amber);
}

.project-card--ghost {
  min-height: 240px;
  grid-column: span 3;
  color: rgba(240, 239, 228, 0.38);
  background: rgba(5, 6, 8, 0.3);
  border-style: dashed;
  box-shadow: none;
}

.project-card--ghost::before {
  opacity: 0.16;
  background: var(--red);
}

.project-card--ghost::after {
  opacity: 0.22;
}

.project-card--ghost:where(:hover, :focus-visible) .frequency-graphic span::after {
  animation-duration: 1.4s;
}

.project-card--ghost:where(:hover, :focus-visible) .frequency-graphic::before {
  opacity: 0.7;
}

.frequency-graphic {
  position: relative;
  min-height: 128px;
  margin-top: auto;
  overflow: hidden;
  border-top: 1px solid rgba(232, 231, 215, 0.1);
}

.frequency-graphic::before,
.frequency-graphic::after {
  position: absolute;
  inset: 0;
  content: "";
}

.frequency-graphic::before {
  background:
    linear-gradient(90deg, rgba(183, 255, 97, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(183, 255, 97, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.45;
}

.frequency-graphic::after {
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(183, 255, 97, 0.72), transparent);
  transform: translateY(-50%);
  box-shadow:
    0 -34px 0 rgba(93, 196, 215, 0.18),
    0 31px 0 rgba(201, 139, 58, 0.16);
}

.frequency-graphic span::after {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: 2px;
  content: "";
  background: rgba(183, 255, 97, 0.78);
  opacity: 0;
  animation: scan-pulse 3.8s linear infinite;
  animation-delay: var(--scan-delay, 0ms);
}

.frequency-graphic span {
  position: absolute;
  bottom: 50%;
  width: 10%;
  height: var(--height, 42px);
  border: 1px solid rgba(183, 255, 97, 0.38);
  border-bottom: 0;
  transform: translateY(50%) skewX(-10deg);
}

.frequency-graphic span:nth-child(1) {
  left: 7%;
  --height: 28px;
  --scan-delay: 0ms;
}

.frequency-graphic span:nth-child(2) {
  left: 23%;
  --height: 72px;
  --scan-delay: 220ms;
}

.frequency-graphic span:nth-child(3) {
  left: 42%;
  --height: 44px;
  --scan-delay: 440ms;
}

.frequency-graphic span:nth-child(4) {
  left: 61%;
  --height: 94px;
  --scan-delay: 660ms;
}

.frequency-graphic span:nth-child(5) {
  left: 82%;
  --height: 36px;
  --scan-delay: 880ms;
}

.frequency-graphic--alt::after {
  background: linear-gradient(90deg, transparent, rgba(93, 196, 215, 0.68), transparent);
  box-shadow:
    0 -22px 0 rgba(183, 255, 97, 0.14),
    0 42px 0 rgba(184, 82, 82, 0.16);
}

.frequency-graphic--alt span {
  border-color: rgba(93, 196, 215, 0.38);
  transform: translateY(50%) skewX(10deg);
}

.frequency-graphic--alt span:nth-child(1) {
  --height: 64px;
}

.frequency-graphic--alt span:nth-child(2) {
  --height: 30px;
}

.frequency-graphic--alt span:nth-child(3) {
  --height: 84px;
}

.frequency-graphic--alt span:nth-child(4) {
  --height: 52px;
}

.frequency-graphic--alt span:nth-child(5) {
  --height: 98px;
}

.project-number {
  font-size: 0.72rem;
}

.project-kind {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.64rem;
}

.project-card h2 {
  margin: auto 0 12px;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.project-card p {
  max-width: 30ch;
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.36;
  color: rgba(232, 231, 215, 0.76);
  font-family: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
}

.project-action {
  width: max-content;
  max-width: 100%;
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.66rem;
  border-top: 1px solid currentColor;
}

.site-footer {
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 11;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.55rem;
  opacity: 0.18;
  transition: opacity 160ms ease;
}

.site-footer:hover,
.site-footer:focus-within {
  opacity: 0.72;
}

.site-footer a {
  text-decoration: none;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes page-scan {
  to {
    transform: translateY(120%);
  }
}

@keyframes ghost-breathe {
  0%,
  100% {
    opacity: 0.035;
    transform: translateY(-47%) rotate(-5deg) scale(0.985);
  }

  50% {
    opacity: 0.065;
    transform: translateY(-47%) rotate(-5deg) scale(1.015);
  }
}

@keyframes led-pulse {
  0%,
  72%,
  100% {
    opacity: 0.62;
    transform: scale(0.9);
  }

  8% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scan-pulse {
  0%,
  78%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }

  8% {
    opacity: 0.88;
  }

  32% {
    opacity: 0;
    transform: translateY(var(--height, 42px));
  }
}

@keyframes cursor-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes terminal-sweep {
  to {
    transform: translateX(100%);
  }
}

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

@media (max-width: 920px) {
  .site-shell {
    padding-top: 42px;
  }

  .hero {
    min-height: 48vh;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .intro {
    max-width: 620px;
  }

  .project-card,
  .project-card--ghost {
    grid-column: span 3;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 22px, 1160px);
    padding-bottom: 66px;
  }

  h1 {
    font-size: clamp(3.5rem, 21vw, 6.2rem);
  }

  .brand-row {
    justify-content: flex-start;
  }

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

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card--ghost {
    min-height: 300px;
    grid-column: auto;
  }

  .project-card--ghost {
    min-height: 210px;
  }

  .site-footer {
    position: static;
    width: min(1160px, calc(100% - 22px));
    margin: -38px auto 14px;
    justify-content: flex-end;
    text-align: right;
  }
}
