:root {
  --bg: #f2ede4;
  --panel: rgba(255, 250, 242, 0.84);
  --panel-strong: rgba(255, 248, 237, 0.96);
  --text: #1d2330;
  --muted: #5f6774;
  --line: rgba(33, 40, 54, 0.12);
  --accent: #0d7a62;
  --accent-strong: #0a5f4d;
  --warn: #c96d2d;
  --done: #2157c7;
  --shadow: 0 24px 70px rgba(36, 27, 17, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(13, 122, 98, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(33, 87, 199, 0.16), transparent 25%),
    linear-gradient(145deg, #f6f0e7 0%, #ebe3d7 48%, #f7f3ec 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(29, 35, 48, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 35, 48, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 75%);
}

button {
  font: inherit;
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 28px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.brand-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent-strong);
  z-index: 1;
}

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

.brand-orbit-a {
  inset: 0;
  border: 2.5px solid rgba(13, 122, 98, 0.25);
  animation: orbit-pulse 3.6s ease-in-out infinite;
}

.brand-orbit-b {
  inset: 8px;
  border: 1.5px dashed rgba(13, 122, 98, 0.45);
  animation: orbit-pulse 3.6s ease-in-out infinite 1.2s;
}

@keyframes orbit-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.brand-copy .eyebrow {
  margin-bottom: 8px;
}

.brand-copy h1 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
}

.eyebrow,
.section-kicker,
.mono,
.meta-label,
.counter {
  font-family: "IBM Plex Mono", monospace;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy-wrap {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.hero-copy {
  max-width: 420px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}

.live-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(13, 122, 98, 0.12);
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
}

.panel,
.detail-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px;
}

.panel-header,
.card-header,
.meta-row,
.action-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.counter,
.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 122, 98, 0.1);
  color: var(--accent-strong);
  font-size: 0.8rem;
}

.task-list,
.timeline,
.activity-list {
  display: grid;
  gap: 12px;
}

.task-list {
  margin-top: 20px;
}

.task-card {
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.task-card:hover,
.task-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(13, 122, 98, 0.3);
  background: rgba(255, 255, 255, 0.8);
  outline: none;
}

.task-card.is-selected {
  border-color: rgba(13, 122, 98, 0.5);
  background: linear-gradient(180deg, rgba(13, 122, 98, 0.12), rgba(255, 255, 255, 0.82));
}

.task-card-header,
.task-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.task-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.task-card p,
#task-summary,
.activity-copy {
  color: var(--muted);
  line-height: 1.5;
}

.task-meta {
  margin-top: 14px;
  font-size: 0.86rem;
}

.detail-panel {
  background: var(--panel-strong);
}

.detail-header {
  align-items: start;
  margin-bottom: 22px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
}

.summary-card,
.activity-card {
  grid-column: span 2;
}

.detail-card {
  padding: 18px;
}

.meta-row {
  justify-content: start;
  margin-bottom: 14px;
}

.meta-value {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29, 35, 48, 0.06);
  font-size: 0.9rem;
}

.meta-stack {
  margin-top: 16px;
}

.meta-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(29, 35, 48, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
}

.action-strip {
  justify-content: start;
  margin-top: 22px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f7fbf9;
}

.secondary-button {
  background: rgba(29, 35, 48, 0.08);
  color: var(--text);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  border: 1px solid rgba(29, 35, 48, 0.08);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.micro-copy,
.mono {
  color: var(--muted);
  font-size: 0.84rem;
}

.micro-copy {
  margin-top: 16px;
}

.timeline-step,
.activity-item {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.timeline-step::before,
.activity-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(29, 35, 48, 0.1);
}

.timeline-step.is-complete::before {
  background: var(--accent);
}

.timeline-step.is-current::before {
  background: var(--warn);
}

.timeline-step.is-future {
  opacity: 0.72;
}

.timeline-title,
.activity-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-weight: 700;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(29, 35, 48, 0.07);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge.claimed {
  background: rgba(201, 109, 45, 0.12);
  color: #8a4a1e;
}

.badge.progress {
  background: rgba(13, 122, 98, 0.12);
  color: var(--accent-strong);
}

.badge.done {
  background: rgba(33, 87, 199, 0.12);
  color: var(--done);
}

@media (max-width: 920px) {
  .hero,
  .layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
  }

  .hero-copy-wrap {
    justify-items: start;
  }

  .summary-card,
  .activity-card {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 20px 14px 24px;
  }

  .panel,
  .detail-card {
    border-radius: 24px;
    padding: 16px;
  }

  h1 {
    max-width: none;
    font-size: 2.7rem;
  }

  .task-card-header,
  .task-meta,
  .timeline-title,
  .activity-title,
  .panel-header,
  .card-header,
  .detail-header {
    flex-direction: column;
    align-items: start;
  }

  .action-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .meta-chip-row {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }
}
