:root {
  --ink: #f3efe7;
  --muted: #aaa59c;
  --surface: #121312;
  --surface-raised: #181a19;
  --line: #343632;
  --coral: #ef6759;
  --signal: #50a9d8;
  --unit: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent 0 77%, rgba(255, 255, 255, 0.018) 77% 77.08%, transparent 77.08%),
    var(--surface);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
}

a {
  color: inherit;
}

.signal-line {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
}

.signal-line span {
  display: block;
  width: 31%;
  height: 100%;
  background: var(--coral);
  transform-origin: left;
  animation: draw-line 900ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.masthead,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(80, 169, 216, 0.1);
}

.issue,
.eyebrow,
.status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: calc(var(--unit) * 7);
  padding: clamp(88px, 13vw, 176px) 0 clamp(80px, 10vw, 136px);
}

.hero .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 -20px;
  color: var(--signal);
}

h1,
h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 820px;
  font-size: clamp(68px, 11vw, 152px);
  line-height: 0.88;
}

.promise {
  align-self: end;
  margin: 0 0 8px;
  padding-left: 24px;
  border-left: 2px solid var(--coral);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
}

.positioning {
  grid-column: 1 / 2;
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 230px;
  gap: 40px;
  align-items: center;
  min-height: 420px;
  padding: 56px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}

.project::after {
  position: absolute;
  right: -120px;
  bottom: 56px;
  width: 430px;
  height: 2px;
  background: var(--coral);
  content: "";
  transform: rotate(-21deg);
  transform-origin: right;
}

.project-index {
  align-self: start;
  color: var(--line);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 74px;
  line-height: 1;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
}

.project h2,
.next-note h2 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
}

.project-copy > p:not(.status) {
  max-width: 610px;
  margin: 24px 0 28px;
  color: var(--muted);
}

.project-copy a {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--coral);
  font-weight: 700;
  text-decoration: none;
}

.project-copy a span {
  color: var(--coral);
  transition: transform 180ms ease;
}

.project-copy a:hover span,
.project-copy a:focus-visible span {
  transform: translate(4px, -4px);
}

.project-mark {
  position: relative;
  width: 180px;
  height: 180px;
  justify-self: end;
}

.orbit,
.core {
  position: absolute;
  border-radius: 50%;
}

.orbit {
  inset: 0;
  border: 1px solid var(--line);
  border-top-color: var(--signal);
  transform: rotate(28deg);
}

.core {
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: var(--signal);
  transform: translate(-50%, -50%);
}

.next-note {
  display: grid;
  grid-template-columns: 0.35fr 1fr 0.75fr;
  gap: 48px;
  padding: 128px 0;
}

.next-note h2 {
  max-width: 560px;
}

.next-note > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes draw-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 820px) {
  .masthead,
  main,
  footer {
    width: min(100% - 32px, 660px);
  }

  .issue {
    display: none;
  }

  .hero,
  .next-note {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 32px;
    padding: 88px 0 80px;
  }

  .hero .eyebrow,
  .positioning {
    grid-column: auto;
  }

  h1 {
    font-size: clamp(64px, 22vw, 104px);
  }

  .promise {
    margin-top: 8px;
  }

  .project {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 28px 56px;
  }

  .project-index {
    font-size: 48px;
  }

  .project-mark {
    position: absolute;
    top: 32px;
    right: 24px;
    width: 92px;
    height: 92px;
    opacity: 0.7;
  }

  .next-note {
    gap: 28px;
    padding: 88px 0;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signal-line span { animation: none; }
  .project-copy a span { transition: none; }
}

