/* =========================
   DOMTEQ
   Main Stylesheet
   ========================= */

:root {
  /* Backgrounds */
  --bg: #080316;
  --bg-soft: #10083b;
  --surface: #171044;
  --surface-2: #22105d;
  --footer-bg: #060210;

  /* Text */
  --text: #f8f7ff;
  --muted: #b9b5d3;
  --text-dim: #817c9b;
  --white: #ffffff;

  /* Font */
  --font-main: "Arial", sans-serif;

  /* Brand Colors */
  --blue: #007ae7;
  --pink: #ff4da6;
  --purple: #270d72;

  /* Brand RGB */
  --blue-rgb: 0 122 231;
  --pink-rgb: 255 77 166;
  --purple-rgb: 74 74 247;

  /* Transparent / Surface Colors */
  --line: rgba(212, 174, 243, 0.18);
  --header-bg: rgba(8, 3, 22, 0.82);
  --mobile-nav-bg: rgba(8, 3, 22, 0.98);
  --surface-subtle: rgba(255, 255, 255, 0.03);
  --surface-alt: rgba(255, 255, 255, 0.04);

  /* Orb Core */
  --orb-core: rgba(255, 255, 255, 0.95);
  --orb-core-soft: rgba(255, 255, 255, 0.55);

  /* Dark Surfaces */
  --section-dark-bg: rgba(16, 8, 59, 0.42);
  --card-top: rgba(34, 16, 93, 0.58);
  --card-bottom: rgba(16, 8, 59, 0.72);

  /* Gradients */
  --accent-gradient: linear-gradient(135deg, var(--purple) 50%, #0066cc);

  /* Shadows */
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);

  /* Shape */
  --radius: 18px;

  /* Layout */
  --container: 1120px;
  --page-gutter: 40px;

  --content-width: min(calc(100% - var(--page-gutter)), var(--container));

  /* Horizontal Dividers */
  --divider-height: 1px;
  --divider-color: var(--line);

  /* Motion */
  --transition-fast: 180ms ease;
  --transition-menu: 220ms ease;
  --transition-image: 260ms ease;

  /* Hero Scaling */
  --hero-scale: 0.6;

  --hero-height: calc(75vh * var(--hero-scale));

  --hero-padding: calc(6rem * var(--hero-scale));

  --hero-logo-width: calc(1050px * var(--hero-scale));

  --hero-computer-width: calc(72rem * var(--hero-scale));

  /* Hero Orbits */
  --orbit-width: calc(45rem * var(--hero-scale));

  --orbit-height: calc(15rem * var(--hero-scale));

  --orb-size: calc(15px * var(--hero-scale));
}

/* =========================
   Reset
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;

  background:
    radial-gradient(
      circle at 15% 5%,
      rgb(var(--blue-rgb) / 17%),
      transparent 34rem
    ),
    radial-gradient(
      circle at 85% 10%,
      rgb(var(--pink-rgb) / 13%),
      transparent 30rem
    ),
    var(--bg);

  color: var(--text);

  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;

  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 1.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 1.5%) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body.is-preload * {
  transition: none !important;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2000;

  padding: 0.75rem 1rem;

  background: var(--white);
  color: var(--bg);

  font-weight: 700;
  text-decoration: none;

  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

/* =========================
   Layout
   ========================= */

.container {
  width: var(--content-width);
  margin-inline: auto;
}

/* =========================
   Horizontal Dividers
   ========================= */

#header,
.hero,
.section {
  position: relative;
}

#header::after,
.hero::after,
.section::after {
  content: "";
  position: absolute;

  left: 50%;
  bottom: 0;

  width: var(--content-width);
  height: var(--divider-height);

  background: var(--divider-color);

  transform: translateX(-50%);
}

/* =========================
   Header
   ========================= */

#header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: var(--header-bg);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
}

/* =========================
   Navigation
   ========================= */

#nav ul {
  display: flex;
  align-items: center;

  gap: 0.35rem;

  margin: 0;
  padding: 0;

  list-style: none;
}

#nav a {
  display: block;

  padding: 0.65rem 0.9rem;

  color: var(--muted);
  text-decoration: none;

  border-radius: 999px;

  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

#nav a:hover,
#nav a.current {
  color: var(--text);

  background: rgb(var(--purple-rgb) / 10%);
}

#nav a.current {
  box-shadow:
    inset 0 0 0 1px rgb(var(--pink-rgb) / 45%),
    3px 3px 0 rgb(var(--pink-rgb) / 25%);
}

/* =========================
   Mobile Menu
   ========================= */

.menu-toggle {
  display: none;

  width: 44px;
  height: 44px;

  padding: 10px;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: var(--surface-subtle);

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  height: 2px;
  margin: 5px 0;

  background: var(--text);

  border-radius: 2px;

  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   Hero
   ========================= */

.hero {
  min-height: var(--hero-height);

  display: grid;
  place-items: center;

  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - var(--page-gutter)), 1280px);

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);

  max-width: var(--container);
  padding-block: var(--hero-padding);

  text-align: left;
}

.hero-intro {
  position: relative;
  z-index: 3;
}

.hero-wordmark {
  width: min(118%, calc(52rem * var(--hero-scale)));
  height: auto;
  margin-bottom: 1.75rem;
}

.hero-intro h1 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-description {
  max-width: 58ch;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 1.6rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid rgb(var(--blue-rgb) / 55%);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--blue);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================
   Retro Computer Visual
   ========================= */

.hero-computer {
  position: relative;
  width: min(118%, var(--hero-computer-width));
  aspect-ratio: 1.25 / 1;
  margin: 0;
  justify-self: center;
}

.mac-signature {
  position: absolute;
  left: 5%;
  top: 18%;
  z-index: 2;
  width: 15%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.signature-orbit {
  position: absolute;
  width: 100%;
  height: 34%;
  border: 2px solid var(--orbit-color);
  border-radius: 50%;
  opacity: 0.92;
  filter: drop-shadow(0 0 2px var(--white))
    drop-shadow(0 0 5px var(--orbit-color));
}

.signature-orbit-blue {
  --orbit-color: var(--blue);
  --orb-color: var(--pink);
  --orb-speed: 15s;
  --orb-delay: -7.5s;
  transform: rotate(90deg);
}

.signature-orbit-pink {
  --orbit-color: var(--pink);
  --orb-color: var(--purple);
  --orb-speed: 15s;
  --orb-delay: -30s;
  transform: rotate(32deg);
}

.signature-orbit-purple {
  --orbit-color: var(--purple);
  --orb-color: var(--blue);
  --orb-speed: 15s;
  --orb-delay: 0s;
  transform: rotate(148deg);
}

.signature-orb {
  position: absolute;
  width: clamp(4px, calc(var(--orb-size) * 0.9), 8px);
  height: clamp(4px, calc(var(--orb-size) * 0.9), 8px);
  border-radius: 50%;
  background: var(--white);
  box-shadow:
    0 0 5px var(--white),
    0 0 9px var(--orb-color),
    0 0 16px var(--orb-color);
  offset-path: ellipse(50% 50% at 50% 50%);
  offset-rotate: 0deg;
  animation: signature-travel var(--orb-speed) linear infinite;
  animation-delay: var(--orb-delay);
}

@keyframes signature-travel {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}

.retro-monitor {
  position: absolute;
  left: 14%;
  top: 0;
  z-index: 2;
  width: 66%;
  height: 53%;
  padding: 5% 10% 6% 5%;
  border: 3px solid #302a42;
  border-radius: 7% 9% 6% 5%;
  background: #d8d1b8;
  box-shadow:
    inset -12px -12px 0 rgb(75 63 89 / 18%),
    7px 9px 0 #17102d,
    0 25px 55px rgb(var(--blue-rgb) / 18%);
}

.retro-monitor::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -5%;
  height: 6%;
  border-radius: 50%;
  background: #292238;
}

.mac-screen-frame {
  width: 100%;
  height: 100%;
  margin-inline: auto;
  padding: 6%;
  border: 3px solid #302a42;
  border-radius: 7%;
  background: #5e5864;
}

.mac-screen {
  height: 100%;
  overflow: hidden;
  border: 3px solid #241e32;
  border-radius: 12% / 9%;
  background: #c9eee7;
  box-shadow:
    inset 0 0 14px rgb(10 47 58 / 24%),
    inset 0 0 3px rgb(255 255 255 / 28%);
  color: #082832;
  font-family: "Courier New", monospace;
  text-shadow: none;
}

.screen-menu {
  display: flex;
  justify-content: space-between;
  padding: 3% 5%;
  border-bottom: 2px solid currentColor;
  color: #000000;
  font-size: clamp(0.62rem, 1.05vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 1;
  filter: none;
  text-shadow: none;
}

.screen-window {
  width: 86%;
  margin: 2% auto 0;
  border: 2px solid currentColor;
  background: #ddf5ef;
  box-shadow: 4px 4px 0 currentColor;
}

.window-title {
  padding: 1.5% 4%;
  border-bottom: 2px solid currentColor;
  color: #000000;
  font-size: clamp(0.58rem, 1vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 1;
  filter: none;
  text-shadow: none;
  text-align: center;
}

.screen-results {
  position: relative;
  height: clamp(1.2rem, 2.2vw, 2rem);
  padding: 0;
  color: #000000;
  font-size: clamp(0.58rem, 1vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 1;
  filter: none;
  text-shadow: none;
  text-align: center;
}

.screen-results span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: screen-cycle 9s steps(1, end) infinite;
}

.screen-results span:nth-child(2) {
  animation-delay: 3s;
}
.screen-results span:nth-child(3) {
  animation-delay: 6s;
}

.loading-track {
  height: 4px;
  margin: 0 8% 4%;
  border: 1px solid currentColor;
}

.loading-track span {
  display: block;
  height: 100%;
  background: currentColor;
  transform-origin: left;
  animation: retro-load 3s steps(8, end) infinite;
}

.disk-slot {
  width: 76%;
  height: 8px;
  border: 2px solid #302a42;
  border-radius: 999px;
  background: #332d3e;
}

.monitor-controls {
  position: absolute;
  right: 4.5%;
  top: 44%;
  display: grid;
  gap: 8px;
}

.monitor-controls span {
  width: clamp(6px, 1vw, 10px);
  aspect-ratio: 1;
  border: 1px solid #161121;
  border-radius: 50%;
  background: #302a42;
  box-shadow: 1px 1px 0 #f0ead2;
}

.retro-base {
  position: absolute;
  left: 14%;
  top: 53%;
  z-index: 1;
  width: 66%;
  height: 25%;
  padding: 4% 5%;
  border: 3px solid #302a42;
  border-radius: 5% 4% 8% 7%;
  background: #c9c2aa;
  box-shadow:
    inset -9px -9px 0 rgb(75 63 89 / 17%),
    8px 10px 0 #17102d;
}

.tower-drive {
  position: absolute;
  right: 5%;
  top: 22%;
  width: 45%;
  height: 54%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6%;
  padding: 5% 6%;
  border: 2px solid #302a42;
  border-radius: 4px;
  background: #aaa38f;
}

.drive-button {
  width: 10%;
  aspect-ratio: 1;
  border: 1px solid #302a42;
  border-radius: 50%;
  background: #d8d1b8;
}

.base-vents {
  position: absolute;
  left: 23%;
  top: 31%;
  width: 16%;
  height: 42%;
  background: repeating-linear-gradient(
    to right,
    #554e5a 0 2px,
    transparent 2px 8px
  );
}

.power-light {
  position: absolute;
  right: 3%;
  bottom: 12%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

.retro-keyboard {
  position: absolute;
  left: 4%;
  right: 10%;
  bottom: 0;
  z-index: 3;
  height: 30%;
  padding: 4.5% 7% 4%;
  border: 3px solid #302a42;
  border-radius: 6% 6% 10% 10%;
  background: linear-gradient(180deg, #eee7cf 0%, #d8d1b8 48%, #b8b099 100%);
  box-shadow:
    0 5px 0 #8d856f,
    0 10px 0 #17102d,
    inset 0 2px 0 rgb(255 255 255 / 55%);
  clip-path: polygon(7% 0, 93% 0, 100% 88%, 97% 100%, 3% 100%, 0 88%);
  transform: perspective(600px) rotateX(9deg);
  transform-origin: bottom center;
}

.retro-keyboard::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 2.5%;
  height: 4%;
  border-radius: 999px;
  background: rgb(48 42 66 / 23%);
}

.keyboard-keys {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 5%;
  height: 88%;
  margin-top: 0;
}

.keyboard-row {
  display: grid;
  gap: 2%;
  height: 100%;
}

.keyboard-row-one {
  grid-template-columns: repeat(12, 1fr);
}

.keyboard-row-two {
  grid-template-columns: 1.35fr repeat(10, 1fr) 1fr;
  margin-inline: 1%;
}

.keyboard-row-three {
  grid-template-columns: 1.55fr repeat(9, 1fr) 1.8fr;
  margin-inline: 1.5%;
}

.keyboard-row-four {
  grid-template-columns: 1.9fr repeat(8, 1fr) 2.1fr;
  margin-inline: 2%;
}

.keyboard-row-bottom {
  grid-template-columns: 1.3fr 1.2fr 5.6fr 1.2fr 1.3fr 0.9fr 0.9fr 0.9fr;
  margin-inline: 3%;
}

.keyboard-row span {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid #696250;
  border-radius: 3px;
  background: linear-gradient(145deg, #f5efd9 0%, #d0c8ae 48%, #9c947d 100%);
  box-shadow:
    inset 1px 1px 0 rgb(255 255 255 / 75%),
    inset -1px -1px 0 rgb(75 68 55 / 22%),
    0 2px 0 #716957,
    0 3px 2px rgb(23 16 45 / 35%);
  transform: perspective(45px) rotateX(10deg) translateY(-1px);
  transform-origin: bottom;
  color: #000000;
  font:
    700 clamp(0.34rem, 0.62vw, 0.56rem) / 1 Arial,
    sans-serif;
  opacity: 1;
  filter: none;
  text-shadow: none;
  text-align: center;
}

.keyboard-row .space-key {
  background: linear-gradient(145deg, #ddd5bd, #aaa18a 68%, #8e856f);
  box-shadow:
    inset 1px 1px 0 rgb(255 255 255 / 55%),
    0 3px 0 #6e6654,
    0 4px 3px rgb(23 16 45 / 35%);
}

.floppy-disk {
  position: absolute;
  right: 5%;
  top: 50%;
  z-index: 4;
  width: 17%;
  aspect-ratio: 1;
  border: 3px solid #20192d;
  border-radius: 4%;
  background: var(--pink);
  box-shadow: 6px 7px 0 #17102d;
  transform: rotate(-9deg);
  animation: insert-disk 6s ease-in-out infinite;
}

.floppy-shutter {
  width: 48%;
  height: 29%;
  margin-inline: auto;
  border: 2px solid #20192d;
  border-top: 0;
  background: #d7d2c4;
}

.floppy-label {
  display: grid;
  place-items: center;
  width: 72%;
  height: 43%;
  margin: 9% auto 0;
  padding: 0;
  background: #fff7da;
  color: #000000;
  font:
    700 clamp(0.42rem, 0.76vw, 0.66rem) / 1 Arial,
    sans-serif;
  letter-spacing: 0.08em;
  opacity: 1;
  filter: none;
  text-shadow: none;
  text-align: center;
}

@keyframes screen-cycle {
  0%,
  32% {
    opacity: 1;
  }
  33%,
  100% {
    opacity: 0;
  }
}

@keyframes retro-load {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes insert-disk {
  0%,
  15%,
  85%,
  100% {
    transform: translate(0, 0) rotate(-9deg);
  }
  35%,
  65% {
    transform: translate(-62%, 8%) rotate(-2deg);
  }
}

/* =========================
   Hero Orbits
   ========================= */

.hero-orbits {
  position: absolute;
  inset: 0;
  z-index: 1;

  display: grid;
  place-items: center;

  pointer-events: none;
}

.orbit {
  position: absolute;

  width: var(--orbit-width);
  height: var(--orbit-height);

  border: 2px solid;
  border-radius: 50%;

  box-shadow:
    0 0 2px var(--white),
    0 0 6px var(--orbit-color),
    0 0 14px var(--orbit-color);

  transform-origin: center;
}

.orbit-blue {
  border-color: rgb(var(--blue-rgb) / 35%);

  transform: rotate(90deg);

  --orbit-color: var(--blue);
  --orb-color: var(--pink);

  --orb-speed: 20s;
  --orb-delay: -10s;
}

.orbit-pink {
  border-color: rgb(var(--pink-rgb) / 32%);

  transform: rotate(32deg);

  --orbit-color: var(--pink);
  --orb-color: var(--purple);

  --orb-speed: 20s;
  --orb-delay: -40s;
}

.orbit-purple {
  border-color: rgb(var(--purple-rgb) / 42%);

  transform: rotate(148deg);

  --orbit-color: var(--purple);
  --orb-color: var(--blue);

  --orb-speed: 20s;
  --orb-delay: 0s;
}

/* =========================
   Moving Orb
   ========================= */

.orb {
  position: absolute;

  width: var(--orb-size);
  height: var(--orb-size);

  border-radius: 50%;

  background: radial-gradient(
    circle at center,
    var(--orb-core) 0%,
    var(--orb-core-soft) 12%,
    var(--orb-color) 40%,
    var(--orb-color) 100%
  );

  box-shadow:
    0 0 8px var(--orb-color),
    0 0 18px var(--orb-color);

  offset-path: ellipse(
    calc(var(--orbit-width) / 2) calc(var(--orbit-height) / 2) at 50% 50%
  );

  offset-distance: 0%;
  offset-rotate: 0deg;

  animation: travel-orbit var(--orb-speed) linear infinite;

  animation-delay: var(--orb-delay);
}

@keyframes travel-orbit {
  from {
    offset-distance: 0%;
  }

  to {
    offset-distance: 100%;
  }
}

/* =========================
   Typography
   ========================= */

.eyebrow {
  margin: 0 0 0.75rem;

  color: var(--white);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.hero-eyebrow {
  position: relative;
  z-index: 2;
  top: 2rem;
  color: var(--text);
  font-size: 1.2rem;
}

.hero-logo-stage {
  position: relative;

  display: grid;
  place-items: center;
}

.hero-logo {
  position: relative;
  z-index: 2;

  margin: 0;
}

.hero-logo img {
  width: min(var(--hero-logo-width), 80vw);

  height: auto;

  margin-inline: auto;
}

.hero-copy {
  max-width: 650px;

  margin: 1.5rem auto 0;

  color: var(--muted);

  font-size: clamp(1rem, 2vw, 1.15rem);
}

.section-heading h2,
.footer h2 {
  margin: 0;

  font-size: clamp(2rem, 5vw, 3.2rem);

  line-height: 1.05;
}

/* =========================
   Sections
   ========================= */

.section {
  padding: 2rem 0;
}

.section-dark {
  background: var(--section-dark-bg);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading > p:last-child {
  max-width: 62ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* =========================
   Cards
   ========================= */

.feature-grid,
.portfolio-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 1.2rem;
}

.feature-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);

  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));

  box-shadow: var(--shadow);
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.4rem;
  border-radius: 8px;
  box-shadow:
    7px 7px 0 #0c071d,
    8px 8px 0 rgb(var(--blue-rgb) / 24%);
}

.feature-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  height: auto;

  padding: 0.45rem 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;

  border: 1px solid rgb(var(--blue-rgb) / 48%);
  border-radius: 5px;

  background: var(--accent-gradient);

  color: var(--white);

  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  min-height: 44px;
  margin-top: auto;
  box-shadow: 3px 3px 0 #0a0518;
  letter-spacing: 0.035em;
}

.feature-action span {
  margin-left: 0.6rem;
  color: var(--pink);
  font-size: 1.1rem;
}

.hero-action,
.feature-action,
.contact-action {
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.feature-action:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #0a0518;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  aspect-ratio: 1;
  margin-bottom: 1.35rem;
  border: 2px solid #0a0518;
  border-radius: 4px;
  background: var(--blue);
  box-shadow: 4px 4px 0 #0a0518;
  color: var(--white);
  font: 700 0.9rem / 1 var(--font-main);
  -webkit-text-stroke: 1.5px #000000;
  paint-order: stroke fill;
  text-shadow:
    -1px -1px 0 #000000,
    1px -1px 0 #000000,
    -1px 1px 0 #000000,
    1px 1px 0 #000000;
}

.card-icon-pink {
  background: var(--pink);
}
.card-icon-purple {
  background: var(--purple);
}

.card-kicker {
  margin: 0 0 0.45rem;
  color: var(--muted) !important;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
  line-height: 1.18;
}

.feature-card p,
.project-card p {
  color: var(--muted);
}

.feature-card > p:not(.card-kicker) {
  margin: 0 0 1.35rem;
}

/* =========================
   Process
   ========================= */

.section-process {
  background: rgb(var(--blue-rgb) / 4%);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(24rem, 1.22fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.process-heading {
  margin: 0;
}

.process-window {
  border: 2px solid rgb(var(--blue-rgb) / 58%);
  border-radius: 7px;
  background: var(--surface);
  box-shadow:
    8px 8px 0 #080316,
    9px 9px 0 var(--purple);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-bottom: 2px solid rgb(var(--blue-rgb) / 58%);
  background: var(--bg-soft);
  font-family: "Courier New", monospace;
  font-size: 1rem;
}

.window-bar span:first-child {
  color: var(--pink);
}
.window-bar span:last-child {
  color: var(--pink);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.3rem;
}

.process-list li + li {
  border-top: 1px dashed rgb(var(--pink-rgb) / 42%);
}

.process-number {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgb(var(--blue-rgb) / 65%);
  border-radius: 4px;
  background: rgb(var(--blue-rgb) / 9%);
  color: var(--blue);
  font:
    800 0.95rem / 1 "Courier New",
    monospace;
}

.process-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

/* =========================
   Portfolio
   ========================= */

.project-card {
  overflow: hidden;
}

.project-image {
  display: block;

  aspect-ratio: 16 / 10;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgb(var(--blue-rgb) / 30%),
      rgb(var(--pink-rgb) / 30%)
    ),
    var(--surface-2);
}

.project-image img {
  height: 100%;

  object-fit: cover;

  transition: transform var(--transition-image);
}

.project-image:hover img {
  transform: scale(1.035);
}

.project-body {
  padding: 1.35rem;
}

.text-link {
  color: var(--purple);

  font-weight: 700;
  text-decoration: none;

  transition: color var(--transition-fast);
}

.text-link:hover {
  color: var(--blue);
}

/* =========================
   Footer
   ========================= */

.footer {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 2rem;
  background: var(--footer-bg);
}

.footer-grid {
  display: grid;

  grid-template-columns: 1.5fr 1fr;

  gap: 3rem;

  align-items: start;
}

.footer-grid > section {
  max-width: 45rem;
}

.footer-copy,
.contact-block p {
  color: var(--muted);
}

.footer-copy {
  max-width: 58ch;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 1rem;
  padding: 0.72rem 1.05rem;
  border: 1px solid rgb(var(--blue-rgb) / 62%);
  border-radius: 5px;
  background: var(--accent-gradient);
  box-shadow: 4px 4px 0 #0a0518;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-action span {
  margin-left: 0.65rem;
  color: var(--pink);
  font-size: 1.1rem;
}

.contact-item + .contact-item {
  margin-top: 1.25rem;
}

.contact-block {
  font-style: normal;
  padding: 1.1rem;
  border: 1px solid rgb(var(--blue-rgb) / 38%);
  border-radius: 6px;
  background: rgb(255 255 255 / 2.5%);
  box-shadow: 5px 5px 0 #020106;
}

.contact-list {
  margin: 0;
}

.contact-list dd {
  margin: 0;
  color: var(--muted);
}

.contact-block a {
  color: var(--blue);

  text-decoration: none;

  transition: color var(--transition-fast);
}

.contact-block .contact-email {
  font-size: 1.15rem;
}

.contact-block a:hover {
  color: var(--pink);
}

.contact-label {
  margin: 0 0 0.2rem;

  color: var(--text) !important;

  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;

  text-transform: uppercase;
}

/* =========================
   Footer Bottom
   ========================= */

.footer-bottom {
  margin-top: 1rem;

  padding-top: 1.4rem;

  border-top: var(--divider-height) solid var(--divider-color);

  color: var(--text-dim);

  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* =========================
   Tablet / Small Desktop
   ========================= */

@media (max-width: 900px) {
  :root {
    --hero-scale: 0.5;
    --page-gutter: 32px;
  }

  /* Mobile navigation button */
  .menu-toggle {
    display: block;
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);

    width: 44px;
    height: 44px;
    padding: 10px;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: var(--surface-subtle);
    color: var(--text);

    cursor: pointer;
  }

  /* Collapsed navigation */
  #nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;

    max-height: 0;
    overflow: hidden;

    visibility: hidden;
    opacity: 0;

    background: var(--mobile-nav-bg);
    border-bottom: 1px solid transparent;

    transition:
      max-height var(--transition-menu),
      opacity var(--transition-menu),
      visibility var(--transition-menu),
      border-color var(--transition-menu);
  }

  /* Open navigation */
  #nav.is-open {
    /* Keep the menu within the screen below the header */
    max-height: calc(100vh - 77px);
    max-height: calc(100dvh - 77px);

    overflow-y: auto;

    visibility: visible;
    opacity: 1;

    border-bottom-color: var(--line);
  }

  #nav ul {
    display: grid;
    gap: 0.25rem;

    width: var(--content-width);
    margin: 0 auto;
    padding: 0.8rem 0 1rem;
  }

  #nav a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0.65rem 0.9rem;

    border-radius: 10px;
  }

  /* Stack card layouts */
  .feature-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .feature-card,
  .project-card {
    width: min(100%, 48rem);
  }

  .section-heading,
  .feature-card,
  .process-list li,
  .footer-grid > section,
  .contact-block,
  .footer-bottom {
    text-align: center;
  }

  .hero-intro h1,
  .hero-description,
  .section-heading h2,
  .section-heading > p,
  .feature-card h3,
  .feature-card > p,
  .process-heading h2,
  .process-heading > p,
  .process-list h3,
  .process-list p,
  .footer h2,
  .footer-copy,
  .contact-list {
    text-align: center;
  }

  .section-heading > p:last-child,
  .footer-copy {
    margin-inline: auto;
  }

  .feature-card {
    align-items: center;
  }

  .feature-action {
    margin-inline: auto;
  }

  .hero-action,
  .feature-action,
  .contact-action {
    justify-content: center;
    text-align: center;
  }

  /* Stack footer columns */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
  }

  .footer-grid > section {
    width: min(100%, 48rem);
    margin-inline: auto;
  }

  .contact-block {
    width: min(100%, 32rem);
  }

  .process-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
  }

  .process-window {
    width: min(100%, 48rem);
  }

  .process-list li {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(2rem, 5vw, 3rem);
  }

  .hero-intro {
    width: 100%;
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
  }

  .hero-wordmark,
  .hero-intro h1,
  .hero-description {
    margin-inline: auto;
  }

  .hero-computer {
    width: min(100%, var(--hero-computer-width));
    justify-self: center;
  }
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 600px) {
  :root {
    --hero-scale: 0.4;
    --page-gutter: 28px;
  }

  html {
    scroll-padding-top: 76px;
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 68px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-inline: 0;
    gap: 2rem;
  }

  .hero-wordmark {
    width: min(96vw, calc(52rem * var(--hero-scale)));
    margin-bottom: 1.35rem;
  }

  .hero-intro h1 {
    font-size: clamp(1.8rem, 8.5vw, 2.5rem);
  }

  .mac-screen {
    display: flex;
    flex-direction: column;
  }

  .screen-menu {
    flex: 0 0 auto;
    padding: 1.5% 4%;
    font-size: clamp(0.4rem, 1.9vw, 0.5rem);
    line-height: 1;
    letter-spacing: 0.03em;
  }

  .screen-window {
    flex: 0 0 auto;
    width: 84%;
    margin: auto;
    box-shadow: 2px 2px 0 currentColor;
  }

  .window-title {
    padding: 0.5% 3%;
    font-size: clamp(0.38rem, 1.8vw, 0.46rem);
    line-height: 1;
    letter-spacing: 0.06em;
  }

  .screen-results {
    height: clamp(0.72rem, 3.4vw, 0.9rem);
    font-size: clamp(0.38rem, 1.8vw, 0.46rem);
    line-height: 1;
    letter-spacing: 0.06em;
  }

  .loading-track {
    height: 4px;
    margin: 0 8% 2%;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-heading h2,
  .footer h2 {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .feature-card {
    padding: 1.2rem;
  }

  .footer {
    padding: 3.25rem 0 2rem;
  }

  .footer-grid {
    gap: 2.25rem;
  }

  .process-window {
    box-shadow:
      5px 5px 0 #080316,
      6px 6px 0 var(--purple);
  }

  .process-list li {
    padding: 1.1rem;
  }
}

/* =========================
   Narrow Mobile
   ========================= */

@media (max-width: 400px) {
  :root {
    --hero-scale: 0.35;
    --page-gutter: 24px;
  }

  .hero-eyebrow {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .feature-action {
    width: 100%;
    min-height: 44px;

    padding: 0.65rem 0.8rem;

    text-align: center;
  }
}

/* =========================
   Short Landscape Screens
   ========================= */

@media (max-height: 500px) and (orientation: landscape) {
  :root {
    --hero-scale: 0.35;
  }

  .hero-content {
    padding-top: var(--hero-padding);
    padding-bottom: var(--hero-padding);
  }
}

/* =========================
   Touch Devices
   ========================= */

@media (hover: none) and (pointer: coarse) {
  #nav a,
  .feature-action,
  .text-link,
  .contact-block a {
    min-height: 44px;
  }

  #nav a,
  .feature-action {
    display: flex;
    align-items: center;
  }

  /* Avoid hover styles remaining active after a tap */
  .project-image:hover img {
    transform: none;
  }
}

/* =========================
   Increased Contrast
   ========================= */

@media (prefers-contrast: more) {
  :root {
    --muted: #dedbea;
    --text-dim: #c7c3d5;
    --line: rgba(255, 255, 255, 0.5);
  }

  .feature-card,
  .project-card,
  .menu-toggle {
    border-width: 2px;
  }

  button:focus-visible,
  a:focus-visible {
    outline-width: 3px;
  }
}

/* =========================
   Reduced Transparency
   ========================= */

@media (prefers-reduced-transparency: reduce) {
  #header {
    background: var(--bg);

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #nav {
    background: var(--bg);
  }
}

/* =========================
   Reduced Motion
   ========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* =========================
   Windows High-Contrast Mode
   ========================= */

@media (forced-colors: active) {
  .menu-toggle,
  .feature-card,
  .project-card,
  .feature-action {
    border: 1px solid ButtonText;
  }

  .feature-action {
    background: ButtonFace;
    color: ButtonText;
  }

  button:focus-visible,
  a:focus-visible {
    outline: 3px solid Highlight;
  }

  .orbit,
  .orb {
    forced-color-adjust: none;
  }
}
/* Pause all CSS animations */
body.animations-paused *,
body.animations-paused *::before,
body.animations-paused *::after {
  animation-play-state: paused !important;
}

/* Center the button beneath the computer */
.animation-toggle {
  grid-column: 2;
  justify-self: center;
  width: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.animation-toggle:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.animation-toggle[aria-pressed="true"] {
  border-color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
}

/* Keep it centered when the layout stacks */
@media (max-width: 900px) {
  .animation-toggle {
    grid-column: 1;
  }
}

.hero-content {
  row-gap: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}