: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;
}

/* 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;
}

@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);
  }
}

.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 */

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

/* Hero without the logo mark: the heading fills the first screen
   and sits on the link bar */

.clean-hero {
  display: flex;
  flex-direction: column;
}

.clean-hero__heading {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
}
