/* ── NEWS TICKERS ── */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
}

.ticker-pink {
  background: #f000b8;
}

.ticker-green {
  background: #aaff00;
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  will-change: transform;
}

.ticker-track--ltr {
  animation: ticker-ltr var(--ticker-duration, 120s) linear infinite;
}

.ticker-track--rtl {
  animation: ticker-rtl var(--ticker-duration, 120s) linear infinite;
}

.ticker-pink .ticker-item {
  color: #fff;
}

.ticker-green .ticker-item {
  color: #000;
}

.ticker-item {
  display: inline-block;
  padding: 0 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticker-link {
  text-decoration: underline;
  cursor: pointer;
}

.ticker-sep {
  display: inline-block;
  padding: 0 60px;
  opacity: 0.6;
}

@keyframes ticker-ltr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0%); }
}

@keyframes ticker-rtl {
  from { transform: translateX(0%); }
  to   { transform: translateX(-50%); }
}

/* ── HOME GRID ── */
.home-grid {
  display: grid;
  grid-template-columns: 3fr 1.5fr 3fr;
  height: calc(100vh - 83px); /* header ~41px + 2 tickers ~42px */
  overflow: hidden;
}

/* ── SHARED COLUMN BASE ── */
.col-left,
.col-mid,
.col-right {
  overflow-y: auto;
  overflow-x: visible;
  scrollbar-gutter: stable;
  padding: 24px 20px 24px 20px;
}

/* subtle dividers between columns */
.col-left  { border-right: 1px solid #e8e8e8; }
.col-right { border-left:  1px solid #e8e8e8; }

/* ── LEFT: FILTER + POST LIST ── */
.filter-bar {
  margin-bottom: 14px;
}

.search-input {
  flex: 1;
  min-width: 80px;
  padding: 4px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  border: 1px solid #ccc;
  background: #fff;
  outline: none;
  color: #000;
}

.search-input::placeholder {
  color: #aaa;
}

.search-input:focus {
  border-color: #000;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid #ccc;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
}

.tag:hover {
  border-color: #000;
  color: #000;
}

.tag.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ── POST LIST ── */
.post-list {
  list-style: none;
}

.post-item {
  border-bottom: 1px solid #f0f0f0;
}

.post-item.hidden {
  display: none;
}

.post-card {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  color: #000;
}

.post-card:hover .post-title {
  text-decoration: underline;
}

/* 4:3 thumbnail */
.post-thumb {
  flex-shrink: 0;
  width: 16.67vw;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  overflow: hidden;
  background: #000;
  align-self: flex-start;
}

.post-info {
  width: 20vw;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  max-height: 12.5vw;
  overflow: hidden;
  position: relative;
}

.post-info::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3vw;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.post-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aaa;
}

.post-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.post-date {
  font-size: 10px;
  color: #aaa;
}

.post-excerpt {
  font-size: 11px;
  color: #555;
  line-height: 1.5;
  margin-top: 2px;
}

/* ── MIDDLE: ECLIPSE ── */
.col-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 24px;
}

.eclipse-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
}

.eclipse-mask {
  width: 16.67vw;
  aspect-ratio: 1 / 2;
  border-radius: 50%;
  background: #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.eclipse-label {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.05em;
}

/* ── RIGHT: THOUGHTS ── */
.col-right-heading {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 28px;
}

.thought-item {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  text-align: center;
}

.thought-item:last-child {
  border-bottom: none;
}

.thought-title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  line-height: 1.35;
  margin-bottom: 6px;
  text-decoration: none;
}

.thought-title:hover {
  text-decoration: underline;
}

.thought-date {
  display: block;
  font-size: 10px;
  color: #aaa;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

/* image same size as left thumbnails */
.thought-thumb {
  width: 16.67vw;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  background: #000;
}

.thought-excerpt {
  font-size: 12px;
  color: #333;
  line-height: 1.8;
  max-height: 45vh;
  overflow: hidden;
  position: relative;
  white-space: pre-line;
  text-align: left;
}

.thought-excerpt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, #fff);
}

/* ── MESSAGE FORM ── */
.msg-form {
  display: flex;
  gap: 0;
  margin-top: 16px;
  width: 16.67vw;
  flex-shrink: 0;
}

.msg-input {
  flex: 1;
  padding: 6px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  border: 1px solid #ccc;
  border-right: none;
  background: #fff;
  color: #000;
  outline: none;
  min-width: 0;
}

.msg-input::placeholder {
  color: #aaa;
}

.msg-input:focus {
  border-color: #000;
}

.msg-btn {
  padding: 6px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  border: 1px solid #ccc;
  background: #000;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.msg-btn:hover {
  background: #333;
}

.msg-input:focus + .msg-btn,
.msg-form:focus-within .msg-btn {
  border-color: #000;
}

.msg-status {
  font-size: 10px;
  color: #aaa;
  margin-top: 6px;
  text-align: center;
  letter-spacing: 0.04em;
  min-height: 14px;
}

/* ── ACTIVE NAV LINK ── */
.site-nav a.active {
  font-weight: 500;
  text-decoration: underline;
}

/* ── PROJECTS MODE ── */
.home-grid.projects-mode {
  grid-template-columns: 1fr;
}

.home-grid.projects-mode .col-mid,
.home-grid.projects-mode .col-right {
  display: none;
}

.home-grid.projects-mode .col-left {
  border-right: none;
  max-width: 100%;
}

.home-grid.projects-mode .post-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.home-grid.projects-mode .post-card {
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 16px;
}

.home-grid.projects-mode .post-thumb {
  width: 100%;
  flex-shrink: unset;
}

.home-grid.projects-mode .post-info {
  width: auto;
  flex-shrink: unset;
  padding: 0 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .home-grid {
    grid-template-columns: 2fr 1fr;
  }
  .col-right {
    display: none;
  }
  .post-thumb {
    width: 22vw;
  }
  .post-info {
    width: auto;
    max-height: calc(22vw * 3 / 4);
  }
  .eclipse-mask {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .col-mid,
  .col-right {
    display: none;
  }
  .col-left {
    border-right: none;
    overflow-y: visible;
    height: auto;
    padding: 16px;
  }
  .post-thumb {
    width: 28vw;
  }
  .post-info {
    width: auto;
    max-height: calc(28vw * 3 / 4);
  }
  .tag-filters {
    gap: 4px;
  }
  .home-grid.projects-mode .post-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .post-card {
    flex-direction: column;
  }
  .post-thumb {
    width: 100%;
  }
  .post-info {
    width: 100%;
    max-height: none;
  }
  .home-grid.projects-mode .post-list {
    grid-template-columns: 1fr;
  }
}
