.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 750;
}

.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.now-hero {
  position: relative;
  overflow: hidden;
  padding-block: 112px 78px;
}

.now-hero::before {
  position: absolute;
  top: -180px;
  right: -120px;
  width: min(62vw, 760px);
  height: 760px;
  border: 1px solid rgba(139, 139, 255, 0.1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 139, 255, 0.14), transparent 66%);
  content: "";
  pointer-events: none;
}

.now-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 64px;
}

.now-hero-grid > *,
.activity-summary > *,
.work-list > *,
.work-card-details > *,
.milestone-grid > *,
.roadmap-grid > * {
  min-width: 0;
}

.now-hero-copy h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(3rem, 6.6vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.now-hero-description {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.02rem;
}

.now-updated {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: #9797a4;
  font-size: 0.82rem;
}

.now-updated time {
  color: #c9c9d3;
  font-weight: 700;
}

.activity-dot {
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-radius: 50%;
  background: #77d2a4;
  box-shadow: 0 0 0 0 rgba(119, 210, 164, 0.5);
  animation: now-activity-pulse 2.4s ease-out infinite;
}

.now-snapshot {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(139, 139, 255, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(rgba(139, 139, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 139, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 90% 0%, rgba(139, 139, 255, 0.14), transparent 15rem),
    rgba(18, 18, 23, 0.92);
  background-size: 24px 24px, 24px 24px, auto, auto;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
}

.now-snapshot-label {
  color: #a7a7ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.now-snapshot h2 {
  margin-top: 10px;
  color: #e1e1f2;
  font-size: 1.4rem;
  line-height: 1.25;
}

.now-snapshot > p:last-child {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.83rem;
}

.now-snapshot-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.now-snapshot-flow span {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8, 8, 11, 0.58);
  color: #c5c5d2;
  font-size: 0.66rem;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
}

.now-snapshot-flow i,
.future-source-flow i {
  color: #666678;
  font-style: normal;
}

.now-summary {
  padding-top: 54px;
}

.activity-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.activity-card {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(155deg, var(--surface-soft), var(--surface));
  transition: border-color 180ms ease, transform 180ms ease;
}

.activity-card:hover {
  border-color: rgba(139, 139, 255, 0.5);
  transform: translateY(-3px);
}

.activity-value {
  color: #d9d9ff;
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.activity-label {
  margin-top: 13px;
  color: #dfdfe8;
  font-size: 0.85rem;
  font-weight: 750;
}

.activity-card small {
  margin-top: 7px;
  color: var(--subtle);
  font-size: 0.72rem;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.work-list:not(.work-list-compact) .work-card:first-child {
  grid-column: 1 / -1;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 139, 255, 0.08), transparent 14rem),
    linear-gradient(155deg, var(--surface-soft), var(--surface));
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.work-card:hover,
.work-card[open] {
  border-color: rgba(139, 139, 255, 0.48);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.23);
}

.work-card:not([open]):hover {
  transform: translateY(-3px);
}

.work-card-summary {
  position: relative;
  display: block;
  min-height: 100%;
  padding: 26px;
  cursor: pointer;
  list-style: none;
}

.work-card-summary::-webkit-details-marker {
  display: none;
}

.work-card-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -5px;
}

.work-card-heading,
.study-card-heading,
.recent-milestone-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.work-project {
  color: #bcbcff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.public-status {
  display: inline-flex;
  flex: none;
  width: fit-content;
  min-height: 27px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(139, 139, 255, 0.35);
  border-radius: 999px;
  background: rgba(139, 139, 255, 0.07);
  color: #c3c3ff;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.status-in-progress,
.status-documenting,
.status-completed {
  border-color: rgba(119, 210, 164, 0.35);
  background: rgba(119, 210, 164, 0.07);
  color: #a8e2c5;
}

.status-next,
.status-definition {
  border-color: rgba(230, 172, 115, 0.36);
  background: rgba(230, 172, 115, 0.07);
  color: #efbd8c;
}

.status-horizon,
.status-studying {
  border-style: dashed;
  border-color: rgba(126, 180, 231, 0.38);
  background: rgba(93, 180, 255, 0.06);
  color: #a9cbea;
}

.status-paused {
  border-color: rgba(176, 176, 188, 0.3);
  color: #b5b5be;
}

.work-card-title {
  display: block;
  margin-top: 15px;
  color: #ebebf2;
  font-size: clamp(1.22rem, 2.2vw, 1.55rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.work-category {
  display: block;
  margin-top: 8px;
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 700;
}

.work-summary {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.now-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.now-tags span {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #30303a;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.52);
  color: #b8b8c4;
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.work-next {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(139, 139, 255, 0.045);
}

.work-next > span {
  color: #9999aa;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.work-next strong {
  color: #d2d2e2;
  font-size: 0.78rem;
}

.work-expand-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  color: #a9a9e8;
  font-size: 0.75rem;
  font-weight: 750;
}

.work-expand-hint::after {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: #d2d2ef;
  content: "+";
  font-size: 1rem;
}

.work-card[open] .work-expand-hint::after {
  content: "−";
}

.work-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 26px;
  border-top: 1px solid var(--border);
  background: rgba(8, 8, 11, 0.28);
}

.work-detail-section h4 {
  margin-bottom: 10px;
  color: #d8d8ea;
  font-size: 0.82rem;
}

.work-detail-section > p,
.detail-list li {
  color: var(--muted);
  font-size: 0.8rem;
}

.detail-list,
.milestone-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 17px;
}

.detail-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "•";
}

.milestone-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.78rem;
}

.milestone-state {
  min-width: 70px;
  padding: 3px 6px;
  border: 1px solid rgba(119, 210, 164, 0.28);
  border-radius: 999px;
  color: #a8e2c5;
  font-size: 0.54rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.is-planned .milestone-state {
  border-style: dashed;
  border-color: rgba(230, 172, 115, 0.32);
  color: #efbd8c;
}

.work-card-footer {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.work-card-updated {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--subtle);
  font-size: 0.7rem;
}

.work-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  color: #bdbdff;
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: none;
}

.work-link:hover {
  color: #ddddff;
}

.study-grid {
  display: grid;
}

.study-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px 40px;
  padding: 30px;
  border: 1px solid rgba(93, 180, 255, 0.3);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(93, 180, 255, 0.09), transparent 18rem),
    linear-gradient(155deg, var(--surface-soft), var(--surface));
}

.study-card-heading,
.study-card > .work-category,
.study-card > .study-summary,
.study-note {
  grid-column: 1 / -1;
}

.study-summary {
  max-width: 850px;
  color: var(--muted);
  font-size: 0.9rem;
}

.study-subtitle {
  margin-top: 12px;
  color: #dadae7;
  font-size: 0.86rem;
}

.study-topics {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.study-topics li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.8rem;
}

.study-topics li::before {
  position: absolute;
  left: 0;
  color: #7eb4e7;
  content: "•";
}

.study-note {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  color: #93abc0;
  font-size: 0.72rem;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.recent-milestone-card {
  padding: 24px;
  border: 1px solid rgba(119, 210, 164, 0.25);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(119, 210, 164, 0.075), transparent 12rem),
    linear-gradient(155deg, var(--surface-soft), var(--surface));
}

.recent-milestone-card h3 {
  margin-top: 16px;
  color: #e2e2ec;
  font-size: 1.05rem;
  line-height: 1.3;
}

.recent-milestone-card > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.undated-note {
  display: block;
  margin-top: 20px;
  color: var(--subtle);
  font-size: 0.66rem;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.roadmap-column {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(155deg, var(--surface-soft), var(--surface));
}

.roadmap-now {
  border-color: rgba(119, 210, 164, 0.32);
}

.roadmap-next {
  border-color: rgba(139, 139, 255, 0.32);
}

.roadmap-horizon {
  border-style: dashed;
  border-color: rgba(230, 172, 115, 0.3);
}

.roadmap-heading {
  min-height: 116px;
}

.roadmap-marker {
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid #77d2a4;
  border-radius: 50%;
}

.roadmap-next .roadmap-marker {
  border-color: var(--accent);
}

.roadmap-horizon .roadmap-marker {
  border-color: var(--project-orange, #e6ac73);
}

.roadmap-heading h3 {
  margin-top: 12px;
  color: #e2e2ed;
  font-size: 1.16rem;
}

.roadmap-heading p {
  margin-top: 6px;
  color: var(--subtle);
  font-size: 0.73rem;
}

.roadmap-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.roadmap-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.roadmap-list li > span {
  color: #858596;
  font-size: 0.6rem;
  font-weight: 800;
}

.roadmap-list p {
  color: var(--muted);
  font-size: 0.77rem;
}

.updates-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 40px;
}

.updates-timeline::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 10px;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(139, 139, 255, 0.1));
  content: "";
}

.update-item {
  position: relative;
}

.update-marker {
  position: absolute;
  top: 25px;
  left: -38px;
  width: 17px;
  height: 17px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 5px rgba(139, 139, 255, 0.08);
}

.update-content {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(155deg, var(--surface-soft), var(--surface));
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #9797a5;
  font-size: 0.7rem;
  font-weight: 700;
}

.update-content h3 {
  margin-top: 10px;
  color: #e4e4ef;
  font-size: 1.04rem;
}

.update-content > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.future-source-panel,
.now-closing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 40px;
  padding: 34px;
  border: 1px solid rgba(139, 139, 255, 0.32);
  border-radius: 21px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 139, 255, 0.11), transparent 18rem),
    linear-gradient(155deg, #17171d, #111115);
}

.future-source-panel h2,
.now-closing-panel h2 {
  margin-top: 8px;
  color: #e5e5ef;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.future-source-panel > div > p:last-child,
.now-closing-panel > div > p:last-child {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.86rem;
}

.future-source-flow {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(8, 8, 11, 0.4);
}

.future-source-flow span {
  display: grid;
  width: min(100%, 270px);
  min-height: 43px;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(20, 20, 25, 0.9);
  color: #c9c9d7;
  font-size: 0.72rem;
  font-weight: 750;
  text-align: center;
}

.future-source-flow i {
  transform: rotate(90deg);
}

.now-closing {
  padding-top: 46px;
}

.now-closing-panel {
  border-color: rgba(119, 210, 164, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(119, 210, 164, 0.1), transparent 18rem),
    linear-gradient(155deg, #17191a, #111115);
}

.now-closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.content-state {
  width: min(100% - 40px, 1080px);
  margin: 0 auto 60px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

@keyframes now-activity-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(119, 210, 164, 0.45);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(119, 210, 164, 0);
  }
}

@media (max-width: 980px) {
  .now-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: 38px;
  }

  .activity-summary,
  .milestone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-milestone-card:first-child {
    grid-column: 1 / -1;
  }

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

  .now-snapshot-flow {
    grid-template-columns: 1fr;
  }

  .now-snapshot-flow i {
    transform: rotate(90deg);
  }

  .roadmap-heading {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .now-hero {
    padding-block: 76px 54px;
  }

  .now-hero-grid,
  .work-list,
  .work-card-details,
  .study-card,
  .future-source-panel,
  .now-closing-panel {
    grid-template-columns: 1fr;
  }

  .now-hero::before {
    right: -260px;
  }

  .now-hero-copy h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .now-snapshot {
    padding: 24px;
  }

  .work-list:not(.work-list-compact) .work-card:first-child,
  .recent-milestone-card:first-child {
    grid-column: auto;
  }

  .work-card-summary,
  .work-card-details,
  .study-card,
  .future-source-panel,
  .now-closing-panel {
    padding: 22px;
  }

  .work-card-footer {
    grid-column: auto;
  }

  .now-closing-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .activity-summary,
  .milestone-grid {
    grid-template-columns: 1fr;
  }

  .activity-card {
    min-height: 138px;
  }

  .now-snapshot-flow {
    grid-template-columns: 1fr;
  }

  .now-snapshot-flow i {
    transform: rotate(90deg);
  }

  .work-card-heading,
  .study-card-heading,
  .recent-milestone-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .milestone-list li {
    grid-template-columns: 1fr;
  }

  .milestone-state {
    min-width: 0;
  }

  .now-closing-actions,
  .now-closing-actions .btn,
  .now-closing-actions .btn-outline {
    width: 100%;
  }

  .updates-timeline {
    padding-left: 31px;
  }

  .update-marker {
    left: -29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activity-dot {
    animation: none;
    box-shadow: none;
  }

  .activity-card,
  .work-card {
    transition-duration: 0.01ms !important;
  }
}
