/* ============================================================
   PELVO.SPACE — Analog Future Design Laboratory
   Pure CSS3 · Experimental Editorial System
   ============================================================ */

/* ------------------------------------------------------------
   01. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Color */
  --parchment: #F3EDE1;
  --mineral: #D9E4DC;
  --cobalt: #253C8C;
  --signal: #D94F35;
  --solar: #E9C84A;
  --jade: #5FAF8A;
  --plum: #472A62;
  --carbon: #17191C;
  --text: #17191C;
  --text-2: #62656A;
  --text-light: #F7F2E8;
  --border: rgba(23, 25, 28, 0.14);
  --border-strong: rgba(23, 25, 28, 0.28);

  /* Type */
  --font-display: "Unbounded", sans-serif;
  --font-serif: "Bodoni Moda", "Didot", Georgia, serif;
  --font-ui: "Albert Sans", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* Space */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Layout */
  --nav-h: 4.25rem;
  --radius: 4px;
  --max: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------
   02. RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--parchment);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Grain overlay */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ------------------------------------------------------------
   03. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--carbon);
  border-radius: var(--radius);
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.btn--primary {
  background: var(--cobalt);
  color: var(--text-light);
  border-color: var(--cobalt);
}

.btn--primary:hover {
  background: var(--carbon);
  border-color: var(--carbon);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--carbon);
}

.btn--ghost:hover {
  background: var(--solar);
  border-color: var(--carbon);
  transform: translateY(-2px);
}

.btn--signal {
  background: var(--signal);
  color: var(--text-light);
  border-color: var(--signal);
}

.btn--signal:hover {
  background: var(--solar);
  color: var(--carbon);
  border-color: var(--solar);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   04. SECTION HEADS
   ------------------------------------------------------------ */
.section-head {
  margin-bottom: var(--space-xl);
  max-width: 40rem;
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: none;
}

.section-head__meta {
  color: var(--text-2);
  margin-bottom: 0.75rem;
}

.section-head__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cobalt);
}

.section-head--dark .section-head__title {
  color: var(--text-light);
}

.section-head--dark .section-head__meta {
  color: rgba(247, 242, 232, 0.55);
}

.section-head__desc,
.section-head__aside {
  margin-top: 0.75rem;
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 28rem;
}

.section-head__aside {
  margin-top: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--plum);
}

/* ------------------------------------------------------------
   05. NAVIGATION
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--parchment);
  border-bottom: 1px solid var(--border-strong);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  min-height: var(--nav-h);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.nav__logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--cobalt);
}

.nav__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--solar);
  box-shadow: 0 0 0 0 rgba(233, 200, 74, 0.5);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.nav__menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cobalt);
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav__link-meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-2);
  letter-spacing: 0.06em;
}

.nav__link:hover {
  background: var(--mineral);
  color: var(--carbon);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav__system {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--jade);
}

.nav__system-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--cobalt);
  border: 1px solid var(--cobalt);
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav__cta:hover {
  background: var(--signal);
  border-color: var(--signal);
  transform: translateY(-1px);
}

@media (min-width: 900px) {
  .nav__menu { display: flex; }
  .nav__system { display: inline-flex; }
}

/* ------------------------------------------------------------
   06. HERO — Laboratory Entrance
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  align-items: center;
  padding: var(--space-xl) var(--gutter) var(--space-2xl);
  overflow: hidden;
  background: var(--parchment);
}

.hero__label {
  position: absolute;
  top: var(--space-lg);
  left: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-2);
  z-index: 2;
}

.hero__label-code { color: var(--cobalt); font-weight: 700; }
.hero__label-sep { color: var(--signal); }

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 52rem;
  padding-top: var(--space-xl);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--cobalt);
  margin-bottom: var(--space-lg);
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--cobalt);
  text-stroke: 2px var(--cobalt);
  padding-left: clamp(0rem, 6vw, 4rem);
}

.hero__lead {
  max-width: 28rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-2);
  margin-bottom: var(--space-lg);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Geometric objects */
.hero__geo {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero__geo--red {
  width: clamp(120px, 22vw, 280px);
  height: clamp(120px, 22vw, 280px);
  border-radius: 50%;
  background: var(--signal);
  top: 12%;
  right: 8%;
  animation: spin-slow 28s linear infinite;
  box-shadow: inset -18px -18px 0 rgba(23, 25, 28, 0.08);
}

.hero__geo--red::after {
  content: "";
  position: absolute;
  inset: 22%;
  border: 2px solid rgba(247, 242, 232, 0.45);
  border-radius: 50%;
}

.hero__geo--yellow {
  width: clamp(48px, 8vw, 90px);
  height: clamp(48px, 8vw, 90px);
  background: var(--solar);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  bottom: 22%;
  right: 28%;
  animation: bob 5s ease-in-out infinite;
}

.hero__geo--plum {
  width: clamp(100px, 16vw, 200px);
  height: clamp(70px, 11vw, 140px);
  background: var(--plum);
  border-radius: 100% 40% 70% 30% / 60% 30% 70% 40%;
  bottom: 14%;
  left: 8%;
  opacity: 0.9;
  animation: morph 9s ease-in-out infinite;
}

.hero__geo--jade {
  width: 18px;
  height: 18px;
  background: var(--jade);
  top: 38%;
  left: 42%;
  border-radius: 2px;
  animation: bob 4s ease-in-out infinite reverse;
}

.hero__outline {
  position: absolute;
  right: -2%;
  bottom: 4%;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 22vw, 18rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(37, 60, 140, 0.18);
  text-stroke: 1.5px rgba(37, 60, 140, 0.18);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.hero__meta {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
  z-index: 2;
}

.hero__measure {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hero__measure--h {
  top: 28%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-strong) 10%,
    var(--border-strong) 90%,
    transparent
  );
}

.hero__measure--h::before,
.hero__measure--h::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--signal);
}

.hero__measure--h::before { left: 12%; }
.hero__measure--h::after { right: 18%; }

.hero__measure--v {
  top: 0;
  bottom: 0;
  left: 62%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--border) 15%,
    var(--border) 85%,
    transparent
  );
}

.hero__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(37, 60, 140, 0.015) 3px,
    rgba(37, 60, 140, 0.015) 4px
  );
  animation: scan-drift 12s linear infinite;
}

/* ------------------------------------------------------------
   07. MANIFESTO
   ------------------------------------------------------------ */
.manifesto {
  position: relative;
  padding: var(--space-3xl) var(--gutter);
  background: var(--mineral);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.manifesto__vertical {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--cobalt);
  white-space: nowrap;
  display: none;
}

.manifesto__coords {
  position: absolute;
  top: var(--space-lg);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.manifesto__object {
  position: absolute;
  width: clamp(160px, 28vw, 340px);
  height: clamp(160px, 28vw, 340px);
  right: 5%;
  bottom: 8%;
  background: var(--cobalt);
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  opacity: 0.9;
  animation: morph 11s ease-in-out infinite;
}

.manifesto__object::before {
  content: "";
  position: absolute;
  inset: 18%;
  border: 2px solid var(--solar);
  border-radius: 50%;
  animation: spin-slow 20s linear infinite reverse;
}

.manifesto__inner {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  padding-left: clamp(0rem, 4vw, 3rem);
}

.manifesto__eyebrow {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: var(--space-lg);
}

.manifesto__quote {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--carbon);
  margin-bottom: var(--space-xl);
}

.manifesto__quote em {
  font-style: italic;
  color: var(--signal);
}

.manifesto__quote p + p {
  margin-top: 0.35em;
}

.manifesto__body {
  max-width: 32rem;
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
}

@media (min-width: 900px) {
  .manifesto__vertical { display: block; }
  .manifesto__inner { padding-left: 4rem; }
}

/* ------------------------------------------------------------
   08. EXPERIMENTAL MODULES
   ------------------------------------------------------------ */
.modules {
  padding: var(--space-3xl) var(--gutter);
  background: var(--parchment);
}

.modules__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-strong);
}

.module {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-md);
  row-gap: 0.35rem;
  align-items: baseline;
  padding: clamp(1.5rem, 4vw, 2.75rem) 0;
  border-bottom: 1px solid var(--border-strong);
  overflow: hidden;
  cursor: default;
  transition:
    background 0.45s var(--ease),
    padding 0.45s var(--ease);
}

.module__geo {
  position: absolute;
  right: 4%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translateY(-50%);
  opacity: 0;
  transition:
    opacity 0.4s var(--ease),
    transform 0.6s var(--ease);
  pointer-events: none;
}

.module--01 .module__geo {
  background: var(--signal);
  border-radius: 50%;
}

.module--02 .module__geo {
  background: var(--solar);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.module--03 .module__geo {
  background: var(--jade);
  border-radius: 4px;
}

.module--04 .module__geo {
  background: var(--plum);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.module--05 .module__geo {
  background: var(--cobalt);
  border-radius: 50% 0 50% 0;
}

.module__num {
  grid-row: 1 / 3;
  align-self: center;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-2);
  transition: color 0.35s var(--ease);
}

.module__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--carbon);
  transition:
    letter-spacing 0.45s var(--ease),
    color 0.35s var(--ease),
    transform 0.45s var(--ease);
}

.module__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--text-2);
  transition: color 0.35s var(--ease);
}

.module__meta {
  position: absolute;
  left: clamp(3.5rem, 8vw, 6rem);
  bottom: 0.65rem;
  color: var(--jade);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.module:hover,
.module:focus-visible {
  background: var(--mineral);
  padding-left: 1rem;
  padding-right: 1rem;
  outline: none;
}

.module:hover .module__title,
.module:focus-visible .module__title {
  letter-spacing: 0.06em;
  color: var(--cobalt);
  transform: translateX(0.5rem);
}

.module:hover .module__num,
.module:focus-visible .module__num {
  color: var(--signal);
}

.module:hover .module__tagline,
.module:focus-visible .module__tagline {
  color: var(--carbon);
}

.module:hover .module__meta,
.module:focus-visible .module__meta {
  opacity: 1;
  transform: translateY(0);
}

.module:hover .module__geo,
.module:focus-visible .module__geo {
  opacity: 1;
  transform: translateY(-50%) rotate(45deg) scale(1.15);
}

.module--03:hover .module__geo,
.module--03:focus-visible .module__geo {
  transform: translateY(-50%) rotate(180deg) scale(1.1);
}

.module--01:hover,
.module--01:focus-visible {
  background: rgba(217, 79, 53, 0.08);
}

.module--04:hover,
.module--04:focus-visible {
  background: rgba(233, 200, 74, 0.18);
}

/* ------------------------------------------------------------
   09. OBJECT ARCHIVE
   ------------------------------------------------------------ */
.archive {
  padding: var(--space-3xl) var(--gutter);
  background: var(--mineral);
}

.archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl) var(--space-lg);
}

.object {
  display: grid;
  gap: var(--space-md);
}

.object__visual {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--parchment);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  transition:
    transform 0.5s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.object__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 48%, rgba(37, 60, 140, 0.06) 50%, transparent 52%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(23, 25, 28, 0.04) 11px,
      rgba(23, 25, 28, 0.04) 12px
    );
}

.object__glyph {
  position: relative;
  z-index: 1;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--cobalt);
  font-family: var(--font-display);
  transition: transform 0.5s var(--ease), color 0.35s var(--ease);
}

.object__visual--circle {
  aspect-ratio: 1;
  border-radius: 50%;
  max-width: 280px;
  background: linear-gradient(160deg, var(--parchment), var(--jade));
}

.object__visual--tall {
  aspect-ratio: 3 / 5;
  max-width: 200px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--cobalt), var(--plum));
}

.object__visual--tall .object__glyph { color: var(--solar); }

.object__visual--wide {
  aspect-ratio: 16 / 7;
  border-radius: 100px;
  max-width: 420px;
  background: linear-gradient(90deg, var(--signal), var(--solar));
}

.object__visual--wide .object__glyph { color: var(--text-light); }

.object__visual--cut {
  aspect-ratio: 1;
  max-width: 260px;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  background: linear-gradient(225deg, var(--plum), var(--cobalt));
}

.object__visual--cut .object__glyph { color: var(--text-light); }

.object__visual--arch {
  aspect-ratio: 4 / 5;
  max-width: 240px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--solar), var(--parchment));
}

.object__visual--oversize {
  aspect-ratio: 5 / 4;
  min-height: 220px;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    var(--parchment);
  background-size: 28px 28px;
}

.object__serial {
  color: var(--cobalt);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.object__cat {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--plum);
  margin-bottom: 0.5rem;
}

.object__desc {
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 22rem;
  margin-bottom: 0.75rem;
}

.object__year {
  color: var(--signal);
}

.object:hover .object__visual {
  transform: translateY(-6px);
  border-color: var(--cobalt);
}

.object:hover .object__glyph {
  transform: scale(1.12) rotate(-8deg);
  color: var(--signal);
}

.object--vector:hover .object__glyph,
.object--frame:hover .object__glyph {
  color: var(--solar);
}

@media (min-width: 700px) {
  .archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .object--orbit { grid-column: 1; margin-top: 0; }
  .object--vector { margin-top: 4rem; }
  .object--pulse { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
  .object--frame { margin-top: 2rem; }
  .object--shift { margin-top: 5rem; }
  .object--field { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; align-items: end; gap: var(--space-lg); }
}

@media (min-width: 1100px) {
  .archive__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-xl) var(--space-md);
  }

  .object--orbit { grid-column: 1 / 5; }
  .object--vector { grid-column: 6 / 9; }
  .object--pulse { grid-column: 1 / 8; grid-template-columns: 1.4fr 1fr; }
  .object--frame { grid-column: 9 / 13; margin-top: -6rem; }
  .object--shift { grid-column: 2 / 6; }
  .object--field { grid-column: 6 / 13; }
}

/* ------------------------------------------------------------
   10. SIGNAL PROCESS
   ------------------------------------------------------------ */
.process {
  position: relative;
  padding: var(--space-3xl) var(--gutter);
  background: var(--parchment);
  overflow: hidden;
}

.section-head--mineral .section-head__title {
  color: var(--cobalt);
}

.process__track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-left: 1.75rem;
  border-left: 3px solid var(--cobalt);
}

.process__stage {
  position: relative;
  padding-left: var(--space-md);
}

.process__node {
  position: absolute;
  left: calc(-1.75rem - 7px);
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--parchment);
  box-shadow: 0 0 0 2px var(--cobalt);
  z-index: 2;
}

.process__node--jade { background: var(--jade); }
.process__node--cobalt { background: var(--cobalt); }
.process__node--red { background: var(--signal); }
.process__node--yellow { background: var(--solar); }
.process__node--plum { background: var(--plum); }

.process__num {
  display: block;
  color: var(--text-2);
  margin-bottom: 0.35rem;
}

.process__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--cobalt);
  margin-bottom: 0.35rem;
}

.process__desc {
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 18rem;
}

.process__signal {
  display: none;
}

@media (min-width: 900px) {
  .process__track {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    padding: var(--space-xl) 0 0;
    border-left: none;
    border-top: 3px solid var(--cobalt);
  }

  .process__stage {
    flex: 1;
    padding: var(--space-lg) var(--space-sm) 0;
    text-align: left;
  }

  .process__node {
    left: 50%;
    top: calc(-1 * var(--space-xl) - 9px);
    transform: translateX(-50%);
  }

  .process__signal {
    display: block;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(var(--space-3xl) + 5.5rem);
    height: 3px;
    pointer-events: none;
  }

  .process__dot {
    position: absolute;
    top: -4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 3px rgba(217, 79, 53, 0.25);
    animation: signal-travel 6s linear infinite;
  }

  .process__dot--delay {
    background: var(--solar);
    box-shadow: 0 0 0 3px rgba(233, 200, 74, 0.3);
    animation-delay: 3s;
  }
}

/* ------------------------------------------------------------
   11. DATA OBSERVATORY
   ------------------------------------------------------------ */
.observatory {
  position: relative;
  padding: var(--space-3xl) var(--gutter);
  background: var(--carbon);
  color: var(--text-light);
  overflow: hidden;
}

.observatory__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 60, 140, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 60, 140, 0.35) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

.observatory__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.stat {
  position: relative;
  padding-top: var(--space-md);
}

.stat__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--signal);
}

.stat__meta {
  color: rgba(247, 242, 232, 0.45);
  margin-bottom: 0.75rem;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--solar);
  margin-bottom: 0.5rem;
}

.stat__value span {
  font-weight: 300;
  color: var(--jade);
  font-size: 0.55em;
}

.stat__label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(247, 242, 232, 0.75);
}

@media (min-width: 700px) {
  .observatory__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl) var(--space-xl);
  }
}

@media (min-width: 1100px) {
  .observatory__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ------------------------------------------------------------
   12. FIELD NOTES
   ------------------------------------------------------------ */
.notes {
  padding: var(--space-3xl) var(--gutter);
  background: var(--parchment);
}

.notes__field {
  display: grid;
  gap: var(--space-2xl);
}

.note {
  display: grid;
  gap: var(--space-md);
  max-width: 36rem;
}

.note__img {
  width: 120px;
  height: 140px;
  background:
    linear-gradient(145deg, var(--mineral), var(--jade)),
    var(--mineral);
  border: 1px solid var(--border-strong);
  clip-path: polygon(8% 0, 100% 0, 100% 88%, 92% 100%, 0 100%, 0 12%);
}

.note--b .note__img {
  background: linear-gradient(160deg, var(--cobalt), var(--plum));
  clip-path: circle(48% at 50% 50%);
  width: 110px;
  height: 110px;
}

.note--c .note__img {
  background: linear-gradient(200deg, var(--solar), var(--signal));
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  width: 140px;
  height: 100px;
}

.note__quote {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--carbon);
}

.note__attrib {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.note__name {
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
  color: var(--cobalt);
}

.note__role {
  font-size: 0.9rem;
  color: var(--text-2);
}

.note__co {
  color: var(--signal);
  margin-top: 0.25rem;
}

.note__aside {
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: 28rem;
  line-height: 1.65;
  border-left: 2px solid var(--solar);
  padding-left: 1rem;
}

@media (min-width: 900px) {
  .notes__field {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl) var(--space-xl);
  }

  .note--a {
    grid-column: 1;
    margin-top: 0;
  }

  .note--b {
    grid-column: 2;
    margin-top: 6rem;
    justify-self: end;
  }

  .note--c {
    grid-column: 1 / -1;
    max-width: 42rem;
    margin-left: 12%;
    margin-top: 2rem;
  }
}

/* ------------------------------------------------------------
   13. PROGRAMS
   ------------------------------------------------------------ */
.programs {
  padding: var(--space-3xl) var(--gutter);
  background: var(--mineral);
}

.programs__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.program {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  background: var(--parchment);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition:
    transform 0.4s var(--ease),
    border-color 0.35s var(--ease);
}

.program:hover {
  transform: translateY(-4px);
  border-color: var(--cobalt);
}

.program__meta {
  color: var(--text-2);
  margin-bottom: var(--space-md);
}

.program__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--cobalt);
  margin-bottom: 0.35rem;
}

.program__for {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: var(--space-lg);
}

.program__features {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: var(--space-lg);
}

.program__features li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--carbon);
}

.program__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--jade);
  border-radius: 1px;
}

.program__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  transition: color 0.3s var(--ease);
}

.program__link:hover {
  color: var(--signal);
}

/* Featured Laboratory program */
.program--featured {
  background: var(--cobalt);
  border: 2px solid var(--solar);
  color: var(--text-light);
}

.program--featured::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 10px;
  height: 10px;
  background: var(--signal);
  border-radius: 1px;
}

.program--featured .program__title,
.program--featured .program__link {
  color: var(--text-light);
}

.program--featured .program__for {
  color: rgba(247, 242, 232, 0.7);
}

.program--featured .program__meta {
  color: rgba(247, 242, 232, 0.5);
}

.program--featured .program__features li {
  color: var(--text-light);
}

.program--featured .program__features li::before {
  background: var(--solar);
}

.program--featured .program__link:hover {
  color: var(--solar);
}

.program--featured:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--solar);
}

.program__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--space-sm);
  color: var(--solar);
}

.program__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@media (min-width: 900px) {
  .programs__list {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .program--featured {
    transform: scale(1.04);
    z-index: 1;
  }

  .program--featured:hover {
    transform: scale(1.06) translateY(-4px);
  }
}

/* ------------------------------------------------------------
   14. FINAL EXPERIMENT
   ------------------------------------------------------------ */
.final {
  position: relative;
  min-height: 90vh;
  display: grid;
  place-items: center;
  padding: var(--space-3xl) var(--gutter);
  background: var(--carbon);
  overflow: hidden;
  text-align: center;
}

.final__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 60, 140, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 60, 140, 0.45) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  pointer-events: none;
  animation: grid-shift 20s linear infinite;
}

.final__outline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(6rem, 28vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(247, 242, 232, 0.08);
  text-stroke: 1.5px rgba(247, 242, 232, 0.08);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.final__geo {
  position: absolute;
  pointer-events: none;
}

.final__geo--red {
  width: clamp(90px, 14vw, 180px);
  height: clamp(90px, 14vw, 180px);
  border-radius: 50%;
  border: 3px solid var(--signal);
  top: 18%;
  right: 12%;
  animation: spin-slow 16s linear infinite;
}

.final__geo--red::before {
  content: "";
  position: absolute;
  inset: 20%;
  background: var(--signal);
  border-radius: 50%;
  opacity: 0.85;
}

.final__geo--yellow {
  width: 0;
  height: 0;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-bottom: 48px solid var(--solar);
  bottom: 20%;
  left: 14%;
  animation: bob 4.5s ease-in-out infinite;
}

.final__geo--plum {
  width: 120px;
  height: 80px;
  background: var(--plum);
  border-radius: 60% 40% 50% 50% / 50% 40% 60% 50%;
  top: 22%;
  left: 10%;
  opacity: 0.85;
  animation: morph 10s ease-in-out infinite;
}

.final__signal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--jade), var(--solar), var(--signal), transparent);
  overflow: hidden;
}

.final__signal::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--solar);
  animation: signal-travel 5s linear infinite;
}

.final__content {
  position: relative;
  z-index: 2;
  max-width: 44rem;
}

.final__label {
  color: rgba(247, 242, 232, 0.45);
  margin-bottom: var(--space-lg);
}

.final__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.final__lead {
  font-size: 1.1rem;
  color: rgba(247, 242, 232, 0.65);
  margin-bottom: var(--space-xl);
  line-height: 1.65;
}

/* ------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--parchment);
  border-top: 1px solid var(--border-strong);
  padding: var(--space-2xl) var(--gutter) var(--space-lg);
}

.footer__top {
  display: grid;
  gap: var(--space-xl);
  max-width: var(--max);
  margin: 0 auto var(--space-2xl);
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 6rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--cobalt);
  margin-bottom: var(--space-sm);
}

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--plum);
  max-width: 20rem;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.footer__col-title {
  color: var(--text-2);
  margin-bottom: var(--space-sm);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col a {
  font-size: 0.95rem;
  color: var(--carbon);
  transition: color 0.25s var(--ease);
}

.footer__col a:hover {
  color: var(--signal);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  max-width: var(--max);
  margin: 0 auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--jade);
}

.footer__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.footer__copy {
  color: var(--text-2);
}

@media (min-width: 800px) {
  .footer__top {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ------------------------------------------------------------
   16. KEYFRAMES
   ------------------------------------------------------------ */
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(95, 175, 138, 0.45);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 6px rgba(95, 175, 138, 0);
  }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes morph {
  0%, 100% {
    border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  }
  33% {
    border-radius: 58% 42% 40% 60% / 55% 50% 50% 45%;
  }
  66% {
    border-radius: 40% 60% 60% 40% / 42% 58% 42% 58%;
  }
}

@keyframes signal-travel {
  0% { left: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes scan-drift {
  from { background-position: 0 0; }
  to { background-position: 0 40px; }
}

@keyframes grid-shift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

/* ------------------------------------------------------------
   17. RESPONSIVE REFINEMENTS
   ------------------------------------------------------------ */
@media (max-width: 699px) {
  .hero__geo--yellow { right: 6%; bottom: 30%; }
  .hero__geo--plum { left: 4%; bottom: 8%; opacity: 0.7; }
  .hero__meta { display: none; }
  .hero__outline { opacity: 0.7; font-size: 5.5rem; }

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

  .module__num {
    grid-row: auto;
  }

  .module__geo {
    width: 44px;
    height: 44px;
    right: 0.5rem;
  }

  .object--pulse,
  .object--field {
    display: grid;
    grid-template-columns: 1fr;
  }

  .final__geo--plum { display: none; }
}

@media (min-width: 1400px) {
  .hero__content {
    max-width: 58rem;
  }

  .manifesto__inner {
    max-width: 54rem;
  }
}
