:root {
  --void: #050806;
  --near-black: #09100b;
  --smoked-panel: #101a13;

  --bone: #e5f2e7;
  --dim-bone: #91a895;

  --spectral: #62ff76;
  --bruised-violet: #1f5e31;
  --oxidized-green: #167a36;
  --signal-rust: #497e54;
  --cold-static: #c2ffca;

  --line: rgba(98, 255, 118, 0.2);
  --soft-line: rgba(98, 255, 118, 0.08);

  --display-font: "Geo", sans-serif;
  --terminal-font: "Space Mono", monospace;
}

/* Lowercase all visible interface text */

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--terminal-font);
  text-transform: lowercase;
}

/*
  Preserve text typed by visitors. Alt text also remains unaffected,
  allowing it to retain natural accessible descriptions.
*/

input,
textarea {
  text-transform: none;
}

button,
input,
select,
textarea {
  font-family: var(--terminal-font);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.glitch {
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

/* Analog display overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgb(194 255 202 / 0.1) 3px,
    rgb(194 255 202 / 0.1) 4px,
    transparent 4px,
    transparent 6px
  );
  opacity: 0.7;
}
.dossier__shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgb(194 255 202 / 0.1) 3px,
    rgb(194 255 202 / 0.1) 4px,
    transparent 4px,
    transparent 6px
  );
  opacity: 0.7;
}

body::after {
  position: fixed;
  top: -25vh;
  right: 0;
  left: 0;
  z-index: 999;
  height: 20vh;
  content: "";
  pointer-events: none;
  opacity: 0.04;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--spectral),
    transparent
  );
  filter: blur(9px);
  animation: analog-roll 13s linear infinite;
}

/* Brand */

.brand {
  display: block;
  color: var(--bone);
  font-size: 1.7rem;
  line-height: 1;
  text-decoration: none;
}

.brand span,
.brand small {
  display: inline;
  color: inherit;
  font: inherit;
}

.brand:hover,
.brand:focus-visible {
  color: var(--spectral);
}

/* Navigation */

.navigation,
.navigation a,
.system-label,
.button {
  font-family: var(--terminal-font);
  text-transform: lowercase;
}

/* Clean stacked hero */

.clean-hero {
  max-width: var(--page);
  min-height: calc(100svh - 4.75rem);
  margin-inline: auto;
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--soft-line);
}

.clean-hero__heading {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) var(--pad) 3rem;
  border-bottom: 1px solid var(--line);
}

.clean-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.67;
  letter-spacing: 0;
}

.clean-hero__heading p {
  max-width: 36rem;
  margin: 3rem 0 0;
  color: var(--dim-bone);
  font-family: var(--terminal-font);
  line-height: 1.8;
}

.clean-hero__visual {
  position: relative;
  display: grid;
  min-height: clamp(25rem, 55vw, 44rem);
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      circle,
      rgba(98, 255, 118, 0.1),
      transparent 38%
    ),
    var(--near-black);
}

.clean-hero__visual::before {
  position: absolute;
  width: min(68vw, 35rem);
  aspect-ratio: 1;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--near-black), var(--near-black)) padding-box,
    linear-gradient(
      120deg,
      var(--cold-static),
      var(--spectral),
      var(--bone),
      var(--oxidized-green),
      var(--spectral)
    ) border-box;
  box-shadow:
    0 0 3rem rgba(98, 255, 118, 0.1),
    14px 14px 0 rgba(22, 122, 54, 0.14);
  content: "";
}

.clean-hero__visual .abstract-mark {
  position: relative;
  z-index: 2;
  inset: auto;
  width: min(38vw, 16rem);
  aspect-ratio: 1;
  filter:
    drop-shadow(7px 0 rgba(98, 255, 118, 0.22))
    drop-shadow(-6px 0 rgba(194, 255, 202, 0.13));
}

.clean-hero__links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.clean-hero__links a {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
  font: 0.72rem var(--terminal-font);
  text-decoration: none;
}

.clean-hero__links a:last-child {
  border-right: 0;
}

.clean-hero__links a:hover,
.clean-hero__links a:focus-visible {
  background: var(--spectral);
  color: var(--void);
}

/* Headings appear above—not beside—their content */

.section-heading {
  display: block;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 400;
  line-height: 0.73;
  letter-spacing: 0;
}

.section-heading > p {
  max-width: 40rem;
  margin: 2rem 0 0;
  color: var(--dim-bone);
}

/* Gallery */

.gallery-piece__caption strong {
  font-family: var(--display-font);
  font-size: 1.55rem;
  font-weight: 400;
  text-transform: lowercase;
}

.gallery-piece__caption small {
  color: var(--dim-bone);
  font-family: var(--terminal-font);
  text-transform: lowercase;
}

/* Packages */

.package__number {
  display: none;
}

.package h3 {
  margin: 0 0 1rem;
  font-family: var(--display-font);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 0.85;
  text-transform: lowercase;
}

.package h4,
.package__price,
.package li {
  font-family: var(--terminal-font);
  text-transform: lowercase;
}

/* Products page */

.products-hero h1 {
  font-family: var(--display-font);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 400;
  line-height: 0.67;
  letter-spacing: 0;
  text-transform: lowercase;
}

/* Dossier */

.dossier__shell {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--near-black), var(--near-black)) padding-box,
    linear-gradient(
      120deg,
      var(--cold-static),
      var(--spectral),
      var(--bone),
      var(--oxidized-green),
      var(--spectral)
    ) border-box;
  box-shadow:
    0 0 3rem rgba(98, 255, 118, 0.1),
    12px 12px 0 rgba(22, 122, 54, 0.13);
}

.dossier__titlebar {
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.dossier__titlebar h2,
.dossier__details h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 0.75;
  text-transform: lowercase;
}

.metadata-row,
.dossier__header,
.carousel-controls {
  font-family: var(--terminal-font);
  text-transform: lowercase;
}

input:focus,
select:focus,
textarea:focus,
.gallery-piece:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--spectral);
  outline-offset: 3px;
}

/* Stronger boot-mark glitch */

.boot__mark {
  filter:
    drop-shadow(8px 0 rgba(98, 255, 118, 0.55))
    drop-shadow(-7px 0 rgba(194, 255, 202, 0.3));
}

.boot__mark.is-visible {
  animation:
    mark-boot 1.4s steps(1) both,
    mark-jitter 100ms steps(2) 10;
}

@keyframes analog-roll {
  from {
    transform: translateY(-25vh);
  }

  to {
    transform: translateY(150vh);
  }
}

@media (max-width: 650px) {
  .clean-hero__heading {
    padding-top: 5rem;
  }

  .clean-hero h1,
  .products-hero h1 {
    font-size: clamp(5rem, 23vw, 8rem);
  }

  .clean-hero__visual::before {
    width: calc(100vw - 3rem);
  }

  .clean-hero__links {
    grid-template-columns: 1fr 1fr;
  }

  .clean-hero__links a {
    border-bottom: 1px solid var(--line);
  }

  .section-heading h2 {
    font-size: clamp(4rem, 19vw, 6.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }
}

.dossier__media {
  position: relative;
}

.dossier__media img {
  display: block;
  width: 100%;
  height: auto;
}

.carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.carousel-controls[hidden] {
  display: none;
}

.carousel-control {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(3.5rem, 14%, 7rem);
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--cold-static);
  background: transparent;
  font-family: var(--terminal-font);
  font-size: clamp(2rem, 5vw, 4rem);
  cursor: pointer;
  opacity: 0.65;
  pointer-events: auto;
  transition:
    color 160ms ease,
    opacity 160ms ease,
    background 160ms ease;
}

.carousel-control--previous {
  left: 0;
  text-align: left;
  padding-left: 1rem;
}

.carousel-control--next {
  right: 0;
  text-align: right;
  padding-right: 1rem;
}

.carousel-control--previous:hover,
.carousel-control--previous:focus-visible {
  color: var(--spectral);
  opacity: 1;
  background: linear-gradient(
    to right,
    rgb(5 8 6 / 0.7),
    transparent
  );
}

.carousel-control--next:hover,
.carousel-control--next:focus-visible {
  color: var(--spectral);
  opacity: 1;
  background: linear-gradient(
    to left,
    rgb(5 8 6 / 0.7),
    transparent
  );
}

#slide-status {
  position: absolute;
  right: 50%;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.25rem 0.5rem;
  color: var(--bone);
  background: rgb(5 8 6 / 0.7);
  font-size: 0.7rem;
  transform: translateX(50%);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-control {
    transition: none;
  }
}

#slide-previous,
#slide-next {
  display: grid;
  width: 3.75rem;
  min-width: 3.75rem;
  height: 3.75rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--spectral);
  background: var(--near-black);
  color: var(--spectral);
  font-size: 0;
  cursor: pointer;
}

#slide-previous::before,
#slide-next::before {
  font-size: 2.5rem;
  line-height: 1;
}

#slide-previous::before {
  content: "←";
}

#slide-next::before {
  content: "→";
}

#slide-previous:hover,
#slide-next:hover,
#slide-previous:focus-visible,
#slide-next:focus-visible {
  background: var(--spectral);
  color: var(--void);
}

/* boot static transition */

.boot {
  overflow: hidden;
  background: var(--void);
}

/* fine television noise */

.boot::before {
  position: absolute;
  inset: -15%;
  z-index: 20;
  content: "";
  pointer-events: none;
  opacity: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 2px,
      rgb(194 255 202 / 0.45) 2px,
      rgb(194 255 202 / 0.45) 3px,
      rgb(0 0 0 / 0.8) 3px,
      rgb(0 0 0 / 0.8) 6px
    ),
    repeating-linear-gradient(
      93deg,
      transparent 0 17px,
      rgb(98 255 118 / 0.18) 18px 21px,
      transparent 22px 43px
    );
  background-size:
    100% 6px,
    71px 100%;
  mix-blend-mode: screen;
}

/* broad damaged signal bands */

.boot::after {
  position: absolute;
  inset: -10%;
  z-index: 21;
  content: "";
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      to bottom,
      transparent 0 14%,
      rgb(229 242 231 / 0.8) 14% 15%,
      transparent 15% 31%,
      rgb(98 255 118 / 0.5) 31% 35%,
      transparent 35% 63%,
      rgb(194 255 202 / 0.75) 63% 64%,
      transparent 64% 81%,
      rgb(98 255 118 / 0.35) 81% 88%,
      transparent 88%
    );
  filter: contrast(180%);
  mix-blend-mode: screen;
}

.boot.is-tuning::before {
  opacity: 0.9;
  animation:
    boot-static-shift 75ms steps(2, end) infinite,
    boot-static-pulse 550ms steps(5, end) both;
}

.boot.is-tuning::after {
  opacity: 0.8;
  animation: boot-signal-tear 110ms steps(2, end) infinite;
}

.boot.is-tuning .boot__terminal {
  animation: boot-terminal-break 90ms steps(2, end) infinite;
}

.boot.is-finished {  animation: boot-screen-collapse 1.2s both;}

@keyframes boot-static-shift {
  0% {
    transform: translate(0);
    background-position: 0 0, 0 0;
  }

  25% {
    transform: translate(-3%, 2%);
    background-position: 0 17px, 23px 0;
  }

  50% {
    transform: translate(4%, -1%);
    background-position: 0 -11px, -31px 0;
  }

  75% {
    transform: translate(-2%, -3%);
    background-position: 0 29px, 17px 0;
  }

  100% {
    transform: translate(3%, 1%);
    background-position: 0 -23px, -19px 0;
  }
}

@keyframes boot-static-pulse {
  0% {
    filter: brightness(0.5) contrast(120%);
  }

  40% {
    filter: brightness(1.8) contrast(240%);
  }

  70% {
    filter: brightness(0.8) contrast(180%);
  }

  100% {
    filter: brightness(2.5) contrast(300%);
  }
}

@keyframes boot-signal-tear {
  0% {
    transform: translateX(-7%);
  }

  33% {
    transform: translateX(9%);
  }

  66% {
    transform: translateX(-3%);
  }

  100% {
    transform: translateX(5%);
  }
}

@keyframes boot-terminal-break {
  0% {
    transform: translateX(0);
    filter: none;
  }

  40% {
    transform: translateX(12px);
    filter:
      drop-shadow(-10px 0 var(--spectral))
      brightness(1.8);
  }

  70% {
    transform: translateX(-8px);
    filter:
      drop-shadow(9px 0 var(--cold-static))
      contrast(2);
  }

  100% {
    transform: translateX(3px);
  }
}
.boot.is-finished {
  animation: boot-screen-collapse 1.2s both;
}

@keyframes boot-screen-collapse {
  0% {
    opacity: 1;
    clip-path: inset(0);
    filter: brightness(1);
    animation-timing-function:
      cubic-bezier(0.08, 0.82, 0.16, 1);
  }

  18% {
    opacity: 1;
    clip-path: inset(42% 0);
    filter: brightness(2.5);
    animation-timing-function:
      cubic-bezier(0.08, 0.82, 0.16, 1);
  }

  32% {
    opacity: 1;
    clip-path: inset(49.3% 8%);
    filter: brightness(7);
    animation-timing-function:
      cubic-bezier(0.12, 0.75, 0.2, 1);
  }

  45% {
    opacity: 1;
    clip-path: inset(49.75% 38%);
    filter: brightness(10);
    animation-timing-function:
      cubic-bezier(0.1, 0.7, 0.2, 1);
  }

  58% {
    opacity: 0.8;
    clip-path: inset(49.9% 48%);
    filter: brightness(12) blur(1px);
  }

  100% {
    opacity: 0;
    clip-path: inset(49.95% 49.8%);
    filter: brightness(2) blur(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot::before,
  .boot::after,
  .boot__terminal {
    animation: none !important;
  }
}

.boot {
  position: fixed;
  isolation: isolate;
}

.boot.is-tuning {
  visibility: visible !important;
  opacity: 1 !important;
}

.boot.is-tuning::before {
  z-index: 999;
  opacity: 1 !important;
  background:
    repeating-linear-gradient(
      to bottom,
      rgb(229 242 231 / 0.7) 0 1px,
      rgb(5 8 6 / 0.85) 1px 3px,
      rgb(98 255 118 / 0.4) 3px 4px,
      rgb(5 8 6 / 0.9) 4px 7px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 8px,
      rgb(229 242 231 / 0.4) 8px 11px,
      transparent 11px 19px
    );
  animation:
    boot-static-shift 55ms steps(2) infinite,
    boot-static-pulse 1.2s steps(8) both !important;
}

.boot.is-tuning::after {
  z-index: 1000;
  opacity: 1 !important;
}

