:root {
  color-scheme: dark;
  --bg: #031426;
  --bg-deep: #020d18;
  --surface: #071b2d;
  --surface-strong: #0b2236;
  --ink: #f3e8d6;
  --muted: #b9b4ac;
  --copper: #ed884e;
  --copper-bright: #ff9b5c;
  --copper-dark: #8f472c;
  --line: rgba(237, 136, 78, 0.48);
  --line-soft: rgba(243, 232, 214, 0.16);
  --display: "Iowan Old Style", Baskerville, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --shell: min(94vw, 1480px);
  --header-height: 86px;
  --transition: 180ms ease;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(29, 63, 86, 0.17), transparent 32rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  content: "";
  background-image:
    repeating-linear-gradient(12deg, transparent 0 7px, rgba(255, 255, 255, 0.015) 7px 8px),
    radial-gradient(circle at 70% 30%, rgba(237, 136, 78, 0.04) 0 1px, transparent 1.5px);
  background-size: auto, 12px 12px;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

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

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.9rem;
  transform: translateY(-160%);
  border: 1px solid var(--copper);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transition: transform var(--transition);
}

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

.site-header {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.brand__mark {
  width: 42px;
  height: 50px;
  overflow: visible;
  fill: none;
  stroke: var(--copper);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.brand__mark--tower {
  stroke-width: 1.7;
}

.header-status,
.header-context {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 0.9rem;
  color: var(--copper-bright);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.status-dot {
  display: block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px rgba(237, 136, 78, 0.08);
  animation: status-pulse 2.8s ease-in-out infinite;
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero__visual {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero__visual--lighthouse {
  background-image: url("lighthouse-hero.webp");
}

.hero__visual--archive {
  background-image: url("archive-hero.webp");
}

.hero__visual--lens {
  background-image: url("signal-lens-hero.webp");
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3.1rem, 6.2vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero p {
  max-width: 29rem;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 1.55;
}

.copper-rule {
  display: block;
  width: 3rem;
  height: 3px;
  margin-block: clamp(1.5rem, 3.2vh, 2.4rem);
  background: var(--copper);
}

.copper-rule--center {
  margin-inline: auto;
}

.hero--home {
  display: flex;
  min-height: clamp(520px, 56vh, 610px);
  align-items: center;
  padding-block: 3rem;
}

.hero--home .hero__copy {
  width: min(53%, 760px);
}

.hero--home h1 {
  max-width: 9.2em;
  font-size: clamp(3.1rem, 5.5vw, 5.75rem);
}

.hero--home .hero__visual {
  background-position: center center;
}

.action {
  display: inline-flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(1.8rem, 4vh, 2.8rem);
  border: 1px solid var(--copper);
  border-radius: 1px;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.action:hover {
  transform: translateY(-2px);
}

.action:focus-visible,
.text-link:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.action--outline {
  min-width: min(100%, 440px);
  padding: 0.85rem 1.35rem;
  justify-content: space-between;
  background: rgba(3, 20, 38, 0.82);
}

.action--outline:hover {
  background: var(--copper);
  color: var(--bg);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.action--solid {
  padding: 0.95rem 1.4rem;
  border-color: var(--copper-bright);
  background: var(--copper);
  color: #160d08;
  box-shadow: inset 0 0 0 2px rgba(243, 232, 214, 0.16);
}

.action--solid:hover {
  border-color: var(--ink);
  background: var(--copper-bright);
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.28), inset 0 0 0 2px rgba(243, 232, 214, 0.22);
}

.action__icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.action__arrow {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.signal-console {
  display: grid;
  min-height: 220px;
  grid-template-columns: 190px minmax(0, 1fr) 90px;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
  padding: clamp(1.25rem, 2.7vw, 2.1rem);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(10, 35, 54, 0.94), rgba(3, 16, 29, 0.96));
  box-shadow: inset 0 0 0 7px rgba(2, 13, 24, 0.52), 0 24px 70px rgba(0, 0, 0, 0.18);
  outline: none;
}

.signal-console:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ink), 0 24px 70px rgba(0, 0, 0, 0.18);
}

.signal-console__dial {
  position: relative;
  width: min(100%, 180px);
  aspect-ratio: 1;
  border: 1px solid var(--copper);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 21%, rgba(237, 136, 78, 0.35) 21.5% 22%, transparent 22.5% 42%);
}

.signal-console__dial::before,
.signal-console__dial::after {
  position: absolute;
  inset: 50% 5%;
  height: 1px;
  content: "";
  background: var(--line);
}

.signal-console__dial::after {
  transform: rotate(90deg);
}

.signal-console__dial i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38%;
  height: 1px;
  background: var(--copper-bright);
  box-shadow: 10px 0 8px rgba(237, 136, 78, 0.65);
  transform: rotate(-42deg);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.signal-console.is-active .signal-console__dial i {
  transform: rotate(-18deg);
}

.signal-console__screen {
  min-width: 0;
  align-self: stretch;
  padding-left: clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line-soft);
}

.signal-console__screen header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.signal-console__screen h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.signal-console__screen header span {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.waveform {
  height: 145px;
  margin-top: 1rem;
  border: 1px solid var(--line-soft);
  background-color: rgba(1, 10, 18, 0.45);
  background-image: radial-gradient(rgba(237, 136, 78, 0.26) 0.75px, transparent 0.75px);
  background-size: 16px 16px;
}

.waveform svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--copper-bright);
}

.waveform__grid {
  fill: none;
  stroke: rgba(243, 232, 214, 0.08);
  stroke-width: 1;
}

.waveform__line {
  fill: none;
  stroke: var(--copper-bright);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s ease 150ms;
}

.signal-console.is-active .waveform__line {
  stroke-dashoffset: 0;
}

.signal-console__meter svg {
  width: 100%;
  fill: none;
  stroke: var(--copper);
  stroke-linecap: round;
  stroke-width: 1.2;
}

.site-footer {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.compass {
  color: var(--copper);
  font-size: 1.3rem;
}

.hero--archive {
  display: flex;
  min-height: calc(100vh - var(--header-height) - 110px);
  align-items: center;
  padding-block: clamp(2.5rem, 4.5vh, 3.5rem);
}

.hero--archive .hero__copy {
  width: min(48%, 650px);
}

.hero--archive h1 {
  max-width: 15ch;
  font-size: clamp(3rem, 5vw, 5.2rem);
}

.hero--archive .hero__visual {
  background-position: center center;
}

.download-frame {
  width: min(100%, 630px);
  margin-top: clamp(2rem, 4vh, 3rem);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border: 1px solid var(--copper);
  background: rgba(3, 20, 38, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.download-frame__heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 1.2rem;
}

.download-frame__heading > svg {
  width: 2.8rem;
  height: 3.4rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--copper);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.download-frame__heading > div {
  min-width: 0;
}

.download-frame__heading span,
.download-frame__heading small {
  display: block;
  color: var(--copper-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.download-frame__heading strong {
  display: block;
  margin-block: 0.4rem 0.6rem;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 560;
  line-height: 1.35;
}

.download-frame__heading small {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}

.download-frame .action {
  width: 100%;
  margin-top: 1.35rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.6rem;
  color: var(--copper-bright);
  font-size: 0.9rem;
  text-decoration-color: var(--copper-dark);
  text-underline-offset: 0.35em;
}

.text-link svg {
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

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

.hero--final {
  display: flex;
  min-height: auto;
  align-items: center;
  justify-content: flex-end;
  padding-block: clamp(2.5rem, 4vh, 3.5rem);
}

.hero--final .hero__visual {
  background-position: center center;
}

.hero--final .hero__copy {
  width: min(50%, 680px);
  text-align: center;
}

.hero--final h1 {
  max-width: 14ch;
  margin-inline: auto;
  font-size: clamp(3.2rem, 4.5vw, 5rem);
}

.hero--final p {
  margin-inline: auto;
}

.status-list {
  max-width: 620px;
  padding: 0;
  margin: clamp(2rem, 4vh, 2.8rem) auto 0;
  list-style: none;
  text-align: left;
}

.status-step {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(0.74rem, 1.05vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 350ms ease, opacity 350ms ease, transform 350ms ease;
}

.js .status-step {
  opacity: 0.42;
  transform: translateX(0.7rem);
}

.status-step.is-complete,
.status-step:not(.js *) {
  color: var(--ink);
  opacity: 1;
  transform: translateX(0);
}

.status-step__check {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
}

.status-step__check svg {
  width: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.action--reveal {
  width: min(100%, 620px);
  min-height: 76px;
  justify-content: space-between;
  margin-top: 1.8rem;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.action--reveal .action__icon {
  height: 2.6rem;
}

.text-link--center {
  display: table;
  margin-inline: auto;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.signal-quote {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  text-align: center;
}

.signal-quote::before {
  display: block;
  margin-bottom: -0.4rem;
  color: var(--copper);
  content: "“";
  font-size: 3.5rem;
  line-height: 1;
}

.signal-quote p {
  margin: 0;
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (max-width: 1040px) {
  .hero--home .hero__copy,
  .hero--archive .hero__copy {
    width: 58%;
  }

  .hero--final .hero__copy {
    width: 56%;
  }

  .signal-console {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .signal-console__meter {
    display: none;
  }
}

@media (max-width: 780px) {
  :root {
    --shell: min(91vw, 680px);
    --header-height: 74px;
  }

  .brand {
    gap: 0.6rem;
    font-size: 1.12rem;
    letter-spacing: 0.2em;
  }

  .brand__mark {
    width: 32px;
    height: 42px;
  }

  .header-status,
  .header-context {
    max-width: 47%;
    justify-content: flex-end;
    font-size: 0.6rem;
    letter-spacing: 0.13em;
    text-align: right;
  }

  .hero {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 3.1rem;
  }

  .hero h1,
  .hero--archive h1,
  .hero--final h1 {
    font-size: clamp(2.75rem, 12.7vw, 4.6rem);
  }

  .hero--home,
  .hero--archive,
  .hero--final {
    min-height: auto;
    padding-bottom: 56vw;
  }

  .hero--home .hero__copy,
  .hero--archive .hero__copy,
  .hero--final .hero__copy {
    width: 100%;
  }

  .hero__visual {
    inset: auto -5vw 0;
    height: 58vw;
    min-height: 260px;
    max-height: 440px;
    border-bottom: 1px solid var(--line);
    background-size: cover;
  }

  .hero__visual--lighthouse,
  .hero__visual--archive {
    background-position: 67% center;
  }

  .hero__visual--lens {
    background-position: 28% center;
  }

  .hero--archive .hero__visual {
    opacity: 0.96;
  }

  .hero--final {
    padding-bottom: 61vw;
  }

  .hero--final .hero__copy {
    text-align: left;
  }

  .hero--final h1,
  .hero--final p,
  .hero--final .copper-rule,
  .hero--final .status-list {
    margin-inline: 0;
  }

  .text-link--center {
    margin-inline: 0;
  }

  .signal-console {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .signal-console__dial {
    display: none;
  }

  .signal-console__screen {
    padding-left: 0;
    border-left: 0;
  }

  .site-footer {
    margin-top: 2.5rem;
  }
}

@media (max-width: 520px) {
  .header-context {
    max-width: 42%;
  }

  .header-status span:first-child {
    display: none;
  }

  .hero h1 br {
    display: none;
  }

  .action {
    width: 100%;
  }

  .download-frame {
    padding: 1rem;
  }

  .download-frame__heading {
    gap: 0.8rem;
  }

  .download-frame__heading > svg {
    width: 2.2rem;
  }

  .signal-console__screen header {
    align-items: flex-start;
    flex-direction: column;
  }

  .waveform {
    height: 120px;
  }

  .status-step {
    min-height: 62px;
    letter-spacing: 0.06em;
  }

  .action--reveal {
    gap: 0.6rem;
    padding-inline: 1rem;
  }

  .action--reveal .action__icon {
    display: none;
  }
}

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

  .waveform__line {
    stroke-dashoffset: 0;
  }
}
