.page-office {
  background:
    radial-gradient(circle at 82% 0, #12325a 0%, transparent 38%),
    #060f26;
}

.page-office nav a[aria-current="page"] {
  color: var(--yellow);
}

.office-hero {
  padding: 42px 0 22px;
}

.office-hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  margin: 0 0 8px;
  letter-spacing: -1.5px;
}

.office-hero h1::after {
  content: "";
  display: block;
  width: min(280px, 42%);
  height: 8px;
  margin-top: 10px;
  border-radius: 99px;
  background: #ffd21e;
  transform: rotate(-1.5deg);
}

.office-hero p {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: clamp(16px, 2vw, 22px);
  color: #dce7f5;
}

.office-layout {
  display: grid;
  gap: 22px;
  padding-bottom: 72px;
}

.office-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #2a3f5c;
  border-radius: 22px;
  background: #0a1733;
  box-shadow: 0 24px 70px #0006;
}

.office-art-wrap {
  position: relative;
  background: #0a1733;
}

.office-art-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 22px;
  background: linear-gradient(#0a1733, transparent);
  z-index: 1;
  pointer-events: none;
}

.office-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 330;
  object-fit: cover;
  object-position: center top;
}

.office-stations {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.station {
  position: absolute;
  top: 4%;
  bottom: 8%;
  pointer-events: none;
}

.station[data-actor-station="author"] {
  left: 1.5%;
  width: 29%;
}

.station[data-actor-station="ceo"] {
  left: 31%;
  width: 24%;
}

.station[data-actor-station="social"] {
  left: 54.5%;
  width: 22%;
}

.status-chip {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 96%;
  padding: 7px 12px;
  border-radius: 999px;
  background: #0a1733;
  border: 2px solid #2ea9f0;
  color: #d7eefc;
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px #0007;
}

.station[data-actor-station="author"] .status-chip {
  left: 58%;
}

.station[data-actor-station="ceo"] .status-chip {
  top: 2%;
}

.station[data-actor-station="social"] .status-chip {
  top: 3%;
  left: 42%;
}

.status-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ea9f0;
  box-shadow: 0 0 0 4px #2ea9f033;
}

.station[data-state="typing"] .status-chip::before,
.station[data-state="posting"] .status-chip::before,
.station[data-state="queueing"] .status-chip::before,
.station[data-state="noting"] .status-chip::before,
.station[data-state="reviewing"] .status-chip::before {
  animation: pulse-dot 1.4s ease-in-out infinite;
}

.station[data-state="shipped"] .status-chip,
.station[data-state="posting"] .status-chip {
  border-color: #ffd21e;
  color: #ffd21e;
}

.station[data-state="shipped"] .status-chip::before,
.station[data-state="posting"] .status-chip::before {
  background: #ffd21e;
  box-shadow: 0 0 0 4px #ffd21e33;
}

.station[data-state="idle"] .status-chip {
  border-color: #3b5f86;
  color: #c5d4e6;
}

.station[data-state="idle"] .status-chip::before {
  background: #7f93ad;
  box-shadow: none;
}

.station[data-state="typing"],
.station[data-state="posting"],
.station[data-state="queueing"],
.station[data-state="noting"],
.station[data-state="reviewing"],
.station[data-state="chatting"],
.station[data-state="shipped"] {
  filter: drop-shadow(0 0 0 transparent);
}

.desk-quote {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 18%;
  z-index: 5;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px 8px 8px 2px;
  background: #f4f7fb;
  color: #0a1733;
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 8px 16px #0004;
}

.station[data-state="chatting"] .desk-quote {
  animation: pop-quote 0.45s ease;
}

.office-ticker-bar,
.office-livebar {
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  margin: 0 14px 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #081225f2;
  border: 1px solid #31415b;
}

.office-ticker-bar.livebar-pulse {
  animation: livePulse 0.95s ease-out;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2ea9f0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-badge[data-mode="demo"] {
  color: #ffd21e;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 25%, transparent);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

#office-ticker,
#office-ticker-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.ticker-item,
.live-card {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid #2a3d58;
}

.ticker-icon,
.live-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffd21e;
  color: #0a1733;
  font-size: 16px;
  font-weight: 900;
}

.ticker-item:nth-child(2) .ticker-icon,
.live-card:nth-child(2) .live-icon {
  background: #2ea9f0;
  color: #0a1733;
}

.ticker-item div,
.live-copy {
  min-width: 0;
}

.ticker-item strong,
.ticker-item span,
.live-copy strong,
.live-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-item strong,
.live-copy strong {
  font-size: 13px;
  color: #f4f8ff;
}

.ticker-item span,
.live-copy span {
  color: #ffd21e;
  font-size: 11px;
  margin-top: 2px;
}

.live-link {
  margin-left: auto;
  color: #d9ebff;
  font-size: 18px;
}

.live-empty,
.feed-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 4px;
}

.office-feed-panel {
  border: 1px solid #2a3f5c;
  border-radius: 18px;
  background: #101f37;
  padding: 20px 20px 10px;
}

.office-feed-panel h2 {
  font-size: 28px;
  margin: 8px 0 6px;
}

.office-source {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
}

#office-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 480px;
  overflow: auto;
}

.feed-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.feed-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #13253f;
  color: #ffd21e;
  font-size: 16px;
}

.feed-item:nth-child(even) .feed-icon {
  background: #0e2744;
  color: #2ea9f0;
}

.feed-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.feed-top strong {
  font-size: 13px;
}

.feed-top time {
  color: #ffd21e;
  font-size: 11px;
  white-space: nowrap;
}

.feed-title {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #e7eef8;
}

.feed-title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #ffd21e66;
}

.feed-platform {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #0c1a32;
  border: 1px solid #2a3f5c;
  color: #c5d2e4;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.feed-quote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #ffd21e;
  background: #0c1a32;
  color: #d5e0ee;
  font-size: 13px;
  line-height: 1.5;
}

.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;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.55; }
}

@keyframes pop-quote {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 #2ea9f066; }
  100% { box-shadow: 0 0 0 22px #2ea9f000; }
}

@media (min-width: 1100px) {
  .office-layout {
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.8fr);
    align-items: start;
  }

  .office-feed-panel {
    position: sticky;
    top: 124px;
    max-height: calc(100vh - 150px);
    overflow: auto;
  }
}

@media (max-width: 1000px) {
  .office-ticker-bar,
  .office-livebar {
    border-radius: 18px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  #office-ticker,
  #office-ticker-cards {
    grid-template-columns: 1fr;
  }

  .ticker-item:nth-child(n + 3),
  .live-card:nth-child(n + 3) {
    display: none;
  }

  .status-chip {
    font-size: 11px;
    padding: 6px 10px;
  }
}

@media (max-width: 650px) {
  .office-hero {
    padding-top: 28px;
  }

  .office-hero h1 {
    font-size: 48px;
  }

  .office-frame {
    border-radius: 14px;
  }

  .office-art {
    min-height: 210px;
    object-position: 18% top;
  }

  .station[data-actor-station="social"] .status-chip,
  .station[data-actor-station="author"] .status-chip,
  .station[data-actor-station="ceo"] .status-chip {
    left: 50%;
  }

  .status-chip {
    font-size: 10px;
    gap: 6px;
    padding: 5px 8px;
  }

  .desk-quote {
    font-size: 10px;
    bottom: 8%;
  }

  .office-feed-panel h2 {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-chip::before,
  .live-dot,
  .desk-quote,
  .office-ticker-bar {
    animation: none !important;
  }
}
