:root {
  --bg: #111315;
  --bg-deep: #1a1d21;
  --paper: rgba(25, 28, 33, 0.86);
  --paper-strong: rgba(30, 34, 40, 0.96);
  --ink: #f2efe8;
  --muted: #aaa497;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

#ptr-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper-strong);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 0 0 12px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(210, 106, 66, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(69, 111, 135, 0.16), transparent 24%),
    linear-gradient(180deg, #121416 0%, #0d0f12 44%, #090b0d 100%);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1024px, calc(100vw - 26px));
  margin: 0 auto;
  padding: 22px 0 45px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 19px;
  align-items: end;
  margin-bottom: 24px;
}

.hero-copy,
.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--paper);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 26px 26px 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.61rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.8vw, 4.48rem);
  line-height: 0.95;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 700;
}

.lede {
  max-width: 36.8rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.hero-panel {
  padding: 18px;
  display: grid;
  gap: 11px;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.metric-label {
  color: var(--muted);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.metric strong {
  font-size: 0.8rem;
  font-weight: 700;
}

.wall {
  min-width: 0;
  column-count: 3;
  column-gap: 18px;
}

.wall-layout {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline-rail {
  position: sticky;
  top: 18px;
}

.timeline-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px 8px 10px 10px;
}

.timeline-title {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.5rem;
}

.timeline-meter {
  position: relative;
  display: grid;
  gap: 8px;
}

.timeline-meter::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  color: inherit;
}

.timeline-dot {
  width: 6px;
  height: 6px;
  margin-top: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.timeline-copy {
  display: grid;
  gap: 1px;
}

.timeline-copy strong {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.timeline-copy span {
  color: var(--muted);
  font-size: 0.52rem;
}

.tile {
  break-inside: avoid;
  margin-bottom: 18px;
  scroll-margin-top: 22px;
}

.tile-link {
  display: block;
  border-radius: 19px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.tile-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42);
  border-color: color-mix(in srgb, var(--tile-accent) 30%, rgba(255, 255, 255, 0.5));
}

.tile-media-link {
  display: block;
}

.tile-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tile-accent) 55%, white), rgba(255, 255, 255, 0.35));
}

.tile-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-embed {
  background:
    linear-gradient(180deg, rgba(24, 27, 32, 0.9), rgba(18, 21, 25, 0.94));
  padding: 11px;
}

.tile-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #fff;
}

.tile-embed-x {
  padding: 8px 8px 0;
}

.tile-embed-x .twitter-tweet {
  margin: 0 auto !important;
}

.tile-embed-linkedin iframe {
  min-height: 544px;
}

.tile-embed-video iframe {
  aspect-ratio: 16 / 9;
  min-height: 224px;
}

.tile-image-fallback {
  min-height: 192px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--tile-accent) 72%, #2a2e34), #14171b);
  font-size: 3.2rem;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.tile-body {
  padding: 14px 14px 16px;
}

.tile-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.36rem;
  line-height: 1.04;
}

.tile h2 a {
  text-decoration: none;
}

.tile p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .wall-layout {
    grid-template-columns: 1fr;
  }

  .timeline-rail {
    position: static;
  }

  .timeline-card {
    display: flex;
    align-items: center;
    overflow-x: auto;
    padding: 9px 10px;
    border-radius: 14px;
  }

  .timeline-title {
    margin: 0 10px 0 0;
    white-space: nowrap;
  }

  .timeline-meter {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .timeline-meter::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 8px auto;
    gap: 6px;
    white-space: nowrap;
  }

  .wall {
    column-count: 2;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 14px;
  }

  .hero-copy,
  .hero-panel {
    border-radius: 18px;
  }

  .hero-copy {
    padding: 19px 18px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.35rem);
  }

  .timeline-rail {
    display: none;
  }

  .wall-layout {
    grid-template-columns: 1fr;
  }

  .wall {
    column-count: 2;
    column-gap: 10px;
  }

  .tile--embed {
    column-span: all;
  }

  .tile h2 {
    font-size: 1.1rem;
  }

  .tile-body {
    padding: 10px 10px 12px;
  }
}
