:root {
  color-scheme: dark;
  --text: #f7fbff;
  --muted: rgba(247, 251, 255, 0.72);
  --faint: rgba(247, 251, 255, 0.14);
  --line: rgba(247, 251, 255, 0.28);
  --panel: rgba(7, 11, 16, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
  background: #000;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.48) 72%, rgba(0, 0, 0, 0.76));
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.26) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px);
  background-size: 41px 41px, 67px 67px;
  mix-blend-mode: overlay;
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 70%);
}

#liquid-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  transition: filter 220ms ease;
}

body.motion-sequence #liquid-canvas {
  filter: saturate(1.18) contrast(1.05) brightness(0.9);
}

.cursor-aura {
  position: fixed;
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 2;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 0.16rem, transparent 0.2rem),
    radial-gradient(circle, rgba(139, 234, 255, 0.12) 0 12%, transparent 28%),
    repeating-radial-gradient(circle, rgba(179, 246, 255, 0.18) 0 1px, transparent 2px 1.05rem),
    radial-gradient(circle, transparent 44%, rgba(255, 255, 255, 0.1) 45%, transparent 48%),
    radial-gradient(circle, rgba(255, 214, 149, 0.06), transparent 62%);
  filter:
    blur(0.1px)
    drop-shadow(0 0 1rem rgba(117, 230, 255, 0.42))
    drop-shadow(0 0 2rem rgba(255, 221, 166, 0.16));
  mix-blend-mode: screen;
  transition:
    opacity 140ms ease,
    transform 120ms ease,
    left 80ms linear,
    top 80ms linear;
}

body.pointer-active .cursor-aura {
  opacity: 1;
  transform: translate(-50%, -50%);
  animation: cursor-ripple 1.1s ease-out infinite;
}

.site-shell {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  padding: 4rem 1.5rem 7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5rem;
  pointer-events: none;
  text-shadow: 0 0 2.5rem rgba(120, 220, 255, 0.18);
  mix-blend-mode: difference;
}

.hero {
  width: min(58rem, 100%);
  margin: 0 auto;
  text-align: center;
  animation: float-drift 8s ease-in-out infinite;
  transition:
    opacity 360ms ease,
    filter 360ms ease,
    transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

body.projects-open .hero {
  animation: none;
  transform: translate3d(0, -1rem, 0) scale(0.96);
  opacity: 0.74;
  filter: blur(0.2px);
}

.eyebrow {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 0 1rem;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 1.4rem rgba(111, 217, 255, 0.28);
}

.code-title span:first-child {
  position: relative;
  z-index: 1;
}

.code-drop {
  position: absolute;
  inset: -0.95rem -1rem;
  z-index: 0;
  overflow: hidden;
  border-radius: 999px;
  opacity: 0.8;
  pointer-events: none;
}

.code-drop::before,
.code-drop::after {
  position: absolute;
  top: -1.8rem;
  color: rgba(180, 247, 255, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
  text-shadow: 0 0 0.8rem rgba(104, 232, 255, 0.85);
  white-space: pre;
  content: attr(data-stream);
  animation: code-rain 4.8s linear infinite;
}

.code-drop::before {
  left: -0.5rem;
}

.code-drop::after {
  right: -0.8rem;
  color: rgba(255, 221, 176, 0.72);
  content: attr(data-stream-alt);
  animation-duration: 6.2s;
  animation-delay: -2.1s;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: "Comfortaa", system-ui, sans-serif;
  font-size: 8.5rem;
  line-height: 0.95;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.86) 0%,
    #ffffff 26%,
    #b7f8ff 42%,
    #f8d8ff 57%,
    #ffe6b3 72%,
    rgba(255, 255, 255, 0.82) 100%
  );
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  filter:
    drop-shadow(0 0 1.2rem rgba(110, 212, 255, 0.38))
    drop-shadow(0 0 2.8rem rgba(248, 144, 255, 0.18));
  animation: liquid-shimmer 6s ease-in-out infinite alternate;
}

.tagline {
  max-width: 42rem;
  margin: 1.15rem auto 0;
  color: var(--muted);
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.55;
}

.actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  pointer-events: auto;
}

.action-link {
  position: relative;
  min-width: 7rem;
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 1rem 2.5rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px) saturate(120%);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.work-cta {
  isolation: isolate;
}

.work-cta::before {
  position: absolute;
  inset: -0.55rem -0.8rem;
  z-index: 0;
  border-radius: 999px;
  opacity: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 50%, rgba(161, 240, 255, 0.34), transparent 58%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 226, 162, 0.16));
  filter: blur(0.35rem);
  transition: opacity 180ms ease;
}

.work-cta:hover::before,
.work-cta:focus-visible::before {
  opacity: 1;
}

.work-cta .label {
  position: relative;
  z-index: 2;
}

.route-map {
  position: absolute;
  left: 50%;
  bottom: -4.2rem;
  z-index: 1;
  width: min(27rem, 86vw);
  height: 14rem;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 1.2rem, 0) scale(0.58);
  filter:
    drop-shadow(0 0 0.4rem rgba(255, 255, 255, 0.72))
    drop-shadow(0 0 1.1rem rgba(116, 229, 255, 0.88))
    drop-shadow(0 0 2.4rem rgba(255, 203, 129, 0.36));
  transition:
    opacity 240ms ease,
    transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.work-cta:hover .route-map,
.work-cta:focus-visible .route-map {
  opacity: 1;
  transform: translate3d(-50%, 1.45rem, 0) scale(1);
}

.route {
  fill: none;
  stroke: rgba(206, 249, 255, 0.98);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  stroke-dasharray: 330;
  stroke-dashoffset: 330;
}

.work-cta:hover .route,
.work-cta:focus-visible .route {
  animation: route-draw 900ms ease forwards;
}

.route-b {
  stroke: rgba(255, 219, 150, 0.84);
  animation-delay: 90ms;
}

.route-c {
  stroke: rgba(255, 188, 241, 0.78);
  animation-delay: 170ms;
}

.route-d {
  stroke: rgba(255, 255, 255, 0.72);
  animation-delay: 240ms;
}

.route-e {
  stroke: rgba(158, 255, 202, 0.74);
  animation-delay: 300ms;
}

.route-points circle {
  fill: #fff;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.work-cta:hover .route-points circle,
.work-cta:focus-visible .route-points circle {
  filter: drop-shadow(0 0 0.55rem rgba(151, 236, 255, 1));
}

.work-cta:hover .route-points circle,
.work-cta:focus-visible .route-points circle {
  animation: point-pop 620ms ease forwards;
}

.route-points circle:nth-child(2n) {
  animation-delay: 160ms;
}

.route-points circle:nth-child(3n) {
  animation-delay: 260ms;
}

.project-grid {
  width: min(72rem, 100%);
  max-height: 0;
  margin: -3rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 0 solid transparent;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(172, 241, 255, 0.22), rgba(255, 255, 255, 0.08));
  opacity: 0;
  pointer-events: none;
  transform: translateY(2rem) scale(0.98);
  transition:
    max-height 620ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 360ms ease,
    transform 560ms cubic-bezier(0.2, 0.9, 0.2, 1),
    border-width 1ms linear 180ms;
}

body.projects-open .project-grid {
  max-height: 26rem;
  border-width: 1px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.project-card {
  min-height: 11.5rem;
  padding: 1.15rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.13), transparent 42%),
    rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(130%);
}

.project-card span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.project-card h2 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.08rem;
  line-height: 1.2;
}

.project-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem;
  line-height: 1.45;
}

.action-link:hover,
.action-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.44);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1rem 2.8rem rgba(85, 203, 255, 0.14);
}

.work-strip {
  width: min(70rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--faint);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  pointer-events: auto;
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.18);
}

.work-strip article {
  position: relative;
  min-height: 10.5rem;
  padding: 1.25rem;
  overflow: visible;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.06), transparent 36%),
    rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(115%);
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.work-strip article:hover,
.work-strip article:focus-within {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), transparent 38%),
    rgba(0, 0, 0, 0.42);
  transform: translateY(-0.35rem);
}

.service-trigger {
  width: max-content;
  max-width: 100%;
  cursor: crosshair;
  outline: none;
}

.interface-demo .service-trigger:hover h2,
.interface-demo .service-trigger:focus-visible h2,
.interface-demo:focus-within .service-trigger h2 {
  color: #fff;
  text-shadow:
    0 0 0.8rem rgba(143, 238, 255, 0.92),
    0 0 2rem rgba(255, 222, 162, 0.36);
}

.service-card h2 {
  width: max-content;
  max-width: 100%;
}

.service-demo {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: calc(100% - 1rem);
  z-index: 6;
  min-height: 8.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 1rem, 0) scale(0.96);
  transition:
    opacity 200ms ease,
    transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.service-card:hover .service-demo,
.service-card:focus-within .service-demo,
.service-trigger:hover ~ .service-demo,
.service-trigger:focus-visible ~ .service-demo {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, -0.4rem, 0) scale(1);
}

.interface-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.8rem, 0.9fr);
  gap: 0.65rem;
}

.mini-window,
.interface-panel pre,
.motion-panel,
.systems-panel {
  border: 1px solid rgba(168, 241, 255, 0.42);
  background:
    linear-gradient(145deg, rgba(148, 239, 255, 0.12), transparent 42%),
    rgba(2, 7, 10, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 2rem rgba(98, 226, 255, 0.08),
    0 0 1.2rem rgba(125, 232, 255, 0.32),
    0 1.4rem 3.2rem rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(135%);
}

.mini-window {
  min-height: 8.8rem;
  padding: 0.8rem;
  cursor: grab;
  user-select: none;
  transform: translate(var(--drag-x, 0), var(--drag-y, 0));
}

.mini-window:active {
  cursor: grabbing;
}

.window-bar {
  display: flex;
  gap: 0.32rem;
  margin-bottom: 1rem;
}

.window-bar span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.window-bar span:nth-child(2) {
  background: rgba(133, 236, 255, 0.78);
}

.window-bar span:nth-child(3) {
  background: rgba(255, 207, 126, 0.78);
}

.mini-chart {
  height: 3.1rem;
  margin-bottom: 0.85rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 0.36rem;
}

.mini-chart span {
  display: block;
  min-height: 0.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(126, 236, 255, 0.42));
  box-shadow: 0 0 1rem rgba(126, 236, 255, 0.42);
  animation: chart-rise 1.8s ease-in-out infinite;
}

.mini-chart span:nth-child(1) {
  height: 42%;
}

.mini-chart span:nth-child(2) {
  height: 78%;
  animation-delay: -0.35s;
}

.mini-chart span:nth-child(3) {
  height: 54%;
  animation-delay: -0.7s;
}

.mini-chart span:nth-child(4) {
  height: 92%;
  animation-delay: -1.05s;
}

.control-row {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
}

.meter {
  height: 0.42rem;
  margin: 0.75rem 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.meter span {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, #8beaff, #ffdf9b);
  animation: meter-pulse 2.5s ease-in-out infinite;
}

.knob-row {
  margin: 0.15rem 0 0.75rem;
  display: flex;
  justify-content: space-between;
}

.knob-row i {
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.72) 0 0.12rem, transparent 0.14rem),
    conic-gradient(from 20deg, rgba(143, 238, 255, 0.86), rgba(255, 222, 162, 0.2), rgba(143, 238, 255, 0.86));
  animation: knob-turn 3.5s linear infinite;
}

.mini-window button {
  min-height: 2rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
}

.interface-panel pre {
  margin: 0;
  padding: 0.8rem;
  overflow: hidden;
  color: rgba(204, 250, 255, 0.88);
  font-size: 0.64rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.motion-panel {
  height: 9rem;
  overflow: hidden;
  background:
    conic-gradient(from 180deg at 50% 50%, rgba(126, 239, 255, 0.2), rgba(255, 216, 144, 0.22), rgba(255, 166, 236, 0.18), rgba(126, 239, 255, 0.2)),
    rgba(0, 0, 0, 0.7);
}

.motion-panel span {
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  animation: orbital-wave 1.8s cubic-bezier(0.72, 0, 0.28, 1) infinite;
}

.motion-panel span:nth-child(2) {
  inset: 2rem 3.6rem;
  border-color: rgba(145, 234, 255, 0.68);
  animation-delay: -0.45s;
}

.motion-panel span:nth-child(3) {
  inset: 3rem 1.8rem;
  border-color: rgba(255, 224, 162, 0.62);
  animation-delay: -0.9s;
}

.systems-panel {
  min-height: 9rem;
  padding: 1rem;
}

.deploy-flow {
  display: grid;
  grid-template-columns: 1fr 1.4rem 1fr 1.4rem 1fr;
  align-items: center;
  gap: 0.35rem;
}

.deploy-flow span {
  min-height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
}

.deploy-flow i {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), #9beeff);
  animation: deploy-line 1.4s ease-in-out infinite;
}

.data-lines {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.data-lines b {
  display: block;
  height: 0.44rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(145, 234, 255, 0.82), rgba(255, 255, 255, 0.08));
  transform-origin: left;
  animation: data-flow 1.8s ease-in-out infinite;
}

.data-lines b:nth-child(2) {
  width: 74%;
  animation-delay: -0.35s;
}

.data-lines b:nth-child(3) {
  width: 52%;
  animation-delay: -0.7s;
}

.mark {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
}

.work-strip h2 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.work-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  min-height: 3.75rem;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 0 1.5rem rgba(117, 219, 255, 0.16);
  mix-blend-mode: difference;
}

.divider {
  opacity: 0.5;
}

@keyframes liquid-shimmer {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes float-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -0.9rem, 0);
  }
}

@keyframes cursor-ripple {
  0% {
    background-size: 100% 100%, 100% 100%, 80% 80%, 82% 82%, 100% 100%;
  }

  100% {
    background-size: 100% 100%, 112% 112%, 116% 116%, 128% 128%, 100% 100%;
  }
}

@keyframes code-rain {
  0% {
    opacity: 0;
    transform: translateY(-0.4rem);
  }

  12%,
  66% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform: translateY(3.1rem);
  }
}

@keyframes route-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes point-pop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }

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

@keyframes meter-pulse {
  0%,
  100% {
    transform: scaleX(0.72);
  }

  50% {
    transform: scaleX(1);
  }
}

@keyframes chart-rise {
  0%,
  100% {
    transform: scaleY(0.68);
    opacity: 0.58;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes knob-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbital-wave {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(0.68);
  }

  35%,
  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(165deg) scale(1.18);
  }
}

@keyframes deploy-line {
  0%,
  100% {
    transform: scaleX(0.28);
  }

  50% {
    transform: scaleX(1);
  }
}

@keyframes data-flow {
  0% {
    opacity: 0.35;
    transform: scaleX(0.2);
  }

  55%,
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 760px) {
  .site-shell {
    min-height: auto;
    padding: 5rem 1rem 7rem;
    gap: 3.5rem;
  }

  h1 {
    font-size: 4.7rem;
  }

  .tagline {
    font-size: 1.08rem;
  }

  .actions {
    gap: 0.55rem;
  }

  .action-link {
    min-width: 6.2rem;
    font-size: 0.84rem;
  }

  .work-strip {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: -2rem;
  }

  body.projects-open .project-grid {
    max-height: 42rem;
  }

  .work-strip article {
    min-height: 8.5rem;
  }

  .service-demo {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    max-height: 0;
    min-height: 0;
    margin-top: 0;
    overflow: hidden;
    transform: translateY(0);
  }

  .service-card:hover .service-demo,
  .service-card:focus-within .service-demo,
  .service-trigger:hover ~ .service-demo,
  .service-trigger:focus-visible ~ .service-demo {
    max-height: 18rem;
    min-height: 8.8rem;
    margin-top: 1rem;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 3.6rem;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .action-link {
    width: 100%;
  }

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

  body.projects-open .project-grid {
    max-height: 58rem;
  }

  .interface-panel {
    grid-template-columns: 1fr;
  }

  .route-map {
    width: 15rem;
  }
}

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