:root {
  color-scheme: light;
  --bg: #f8f3ea;
  --card: rgba(255, 252, 247, 0.72);
  --line: #d9d0c5;
  --line-strong: #9a8f9c;
  --ink: #463d47;
  --muted: #746676;
  --accent: #ff4632;
  --plum: #746676;
  --plum-deep: #463d47;
  --soft-border: rgba(70, 61, 71, 0.08);
  --soft-shadow: 0 10px 30px rgba(216, 198, 176, 0.18);
  --base-headshot: url("https://www.ericcenteno.com/_assets/v11/f399eb10c9860951b3b4884d9bc7f9e1ec33c4d0.png");
  --overlay-headshot: url("https://www.ericcenteno.com/_assets/v11/3e2c1deb01c86e972423afc0ca5b3ec6bfa950b8.png");
  --story-image: url("https://app.paper.design/file-assets/01KNXPTGCSX0W6JD4JZPD1X5XS/61N13QXVBMJCD3K00ZYS2WSJVJ.png");
  --timeline-sticky-offset: 35px;
  --timeline-gutter: 23px;
  --timeline-ink-strong: #857785;
  --timeline-ink-mid: #b7aabb;
  --timeline-ink-soft: #ddd5de;
}

@font-face {
  font-family: "SF Pro Text Local";
  src: url("/fonts/SF-Pro-Text-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Text Local";
  src: url("/fonts/SF-Pro-Text-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Text Local";
  src: url("/fonts/SF-Pro-Text-Ultralight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display Local";
  src: url("/fonts/SF-Pro-Display-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Rounded Local";
  src: url("/fonts/SF-Pro-Rounded-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Compact Text Local";
  src: url("/fonts/SF-Compact-Text-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "SF Pro Text Local", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

body.preload-layout {
  overflow: hidden;
}

body.preload-layout .page-body {
  opacity: 0;
  pointer-events: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

body.preload-layout .page-loader {
  opacity: 1;
}

.page-loader__wordmark {
  position: relative;
  display: inline-block;
  font-family: "Poppins", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #857785;
}

.page-loader__wordmark::after {
  content: "";
  position: absolute;
  inset: -10% -6%;
  background: linear-gradient(
    90deg,
    rgba(116, 102, 118, 0.05) 0%,
    rgba(183, 169, 152, 0.45) 50%,
    rgba(116, 102, 118, 0.05) 100%
  );
  filter: blur(14px);
  animation: loader-pulse 1.2s ease-in-out infinite alternate;
  z-index: -1;
}

.page-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 29px 24px;
}

.sidebar-heading h1 {
  margin: 0;
  width: max-content;
  display: block;
  font-family: "Poppins", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 46px;
  line-height: 0.92;
  color: var(--accent);
  letter-spacing: -0.045em;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  transform-origin: left center;
}

.sidebar-heading p {
  margin: 6px 0 0 0;
  color: var(--muted);
  width: max-content;
  display: block;
  font-family: "SF Pro Rounded Local", "SF Pro Rounded", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  line-height: 0.8;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 400;
  transform-origin: left center;
}

.page-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 8fr);
  gap: 8px;
  margin-top: 0;
  height: calc(100vh - 58px);
  min-height: 0;
  transition: opacity 160ms ease;
}

.sidebar-card,
.story-card {
  border-radius: 12px;
}

.sidebar-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  padding: 0 26px 0;
  background: #fdfaf3;
  border: 1px solid #e1d5c1;
  color: var(--ink);
  height: 100%;
  min-height: 0;
  position: sticky;
  top: 30px;
  overflow: hidden;
  isolation: isolate;
}

.sidebar-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
  background: #fdfaf3;
  padding-top: 22px;
  padding-bottom: 12px;
  position: relative;
  z-index: 2;
}

.sidebar-mobile-toggle {
  display: none;
}

.sidebar-heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17px;
  height: 17px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(253, 250, 243, 1) 0%,
    rgba(253, 250, 243, 0.82) 48%,
    rgba(253, 250, 243, 0) 100%
  );
}

.sidebar-scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 18px;
  padding-bottom: 12px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 102, 118, 0.22) transparent;
}

.sidebar-intro {
  display: block;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 14px;
}

.portrait-shell {
  position: relative;
  float: left;
  width: 34%;
  min-width: 118px;
  max-width: 128px;
  height: 164px;
  margin: 2px 14px 0 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.portrait {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition:
    opacity 680ms ease,
    filter 680ms ease,
    transform 480ms ease;
}

.portrait-base {
  background-image: var(--base-headshot);
  opacity: 1;
}

.portrait-overlay {
  background-image: var(--overlay-headshot);
  opacity: 0;
  filter: blur(8px);
}

.portrait-shell:hover .portrait-overlay,
.portrait-shell:focus-within .portrait-overlay {
  opacity: 1;
  filter: blur(0);
}

.portrait-shell:hover .portrait-base,
.portrait-shell:focus-within .portrait-base {
  opacity: 0.18;
  filter: blur(2px);
}

.portrait-frame {
  position: absolute;
  inset: 0;
  box-shadow: none;
  border-radius: 12px;
}

.hello-pill {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%) translateY(14px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  font-family: "SF Pro Text Local", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  filter: blur(8px);
  transition:
    opacity 360ms ease,
    filter 360ms ease,
    transform 360ms ease;
}

.portrait-shell:hover .hello-pill,
.portrait-shell:focus-within .hello-pill {
  opacity: 1;
  filter: blur(0);
  transform: translateX(-50%) translateY(0);
}

.sidebar-bio {
  display: block;
  min-width: 0;
  padding-top: 0;
}

.sidebar-bio p {
  margin: 0;
  font-family: "SF Pro Text Local", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.82;
  color: color-mix(in srgb, var(--muted) 88%, white);
  text-wrap: pretty;
}

.wave {
  display: inline-block;
  transform-origin: 70% 80%;
  animation: wave-intro 0.32s ease-out 1 forwards,
    wave-sway 1.1s ease-in-out 0.32s infinite;
}

.sidebar-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  clear: both;
  margin-top: 0;
  padding-top: 16px;
  background: #fdfaf3;
  padding-bottom: 22px;
  position: relative;
  z-index: 2;
  box-shadow: 0 -10px 16px #fdfaf3;
}

.sidebar-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 17px;
  position: relative;
  transition: color 180ms ease;
}

.sidebar-links a::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 5px 8px;
  border: 1px solid #e1d5c1;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-family: "SF Pro Rounded Local", "SF Pro Rounded", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.sidebar-links a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 180ms ease;
}

.sidebar-links a .icon-discogs {
  width: 24px;
  height: 24px;
}

.sidebar-links a:hover {
  color: var(--accent);
}

.sidebar-links a:hover svg,
.sidebar-links a:focus-visible svg {
  transform: scale(1.08);
}

.sidebar-links a:hover::after,
.sidebar-links a:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.rail-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.rail-section h2 {
  margin: 0;
  font-family: "Poppins", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mini-pills span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #e1d5c1;
  border-radius: 999px;
  background: #fff;
  color: #b7a998;
  font-family: "SF Pro Rounded Local", "SF Pro Rounded", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.timeline-column {
  height: 100%;
  min-height: 0;
  position: sticky;
  top: 30px;
  overflow: visible;
  padding-top: 13px;
  padding-left: 8px;
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-left: 0;
  min-height: 18px;
  padding-top: 18px;
}

.timeline-head-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.timeline-head h2,
.story-kicker {
  font-family: "SF Compact Text Local", "SF Compact Text", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  line-height: 1.1;
  font-weight: 400;
}

.timeline-head h2 {
  margin: 0;
  color: var(--timeline-ink-strong);
}

.timeline-label {
  display: inline-flex;
  align-items: center;
}

.timeline-company-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 108px;
  min-height: 24px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.96);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(216, 198, 176, 0.16);
  transform: translateZ(0) scaleX(1) scaleY(1);
  transform-origin: center center;
  transition:
    width 240ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 180ms ease,
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease,
    border-color 180ms ease;
}

.timeline-company-pill[hidden] {
  display: none !important;
}

.timeline-company-pill.is-swapping {
  filter: blur(0);
  transform: translateZ(0) scaleX(1.04) scaleY(0.98);
}

.timeline-company-pill.is-milestone {
  background: #7d747e;
  border-color: #7d747e;
}

.timeline-company-pill.is-entering {
  filter: blur(0);
  transform: translateZ(0) scaleX(1) scaleY(1);
}

.timeline-company-pill img {
  display: none;
}

#timeline-company-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  font-family: "SF Compact Text Local", "SF Compact Text", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  line-height: 1.1;
  font-weight: 400;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    opacity 90ms ease-out,
    filter 260ms ease-out,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-company-pill.is-swapping #timeline-company-label {
  opacity: 0.46;
  filter: blur(10px);
  transform: translateZ(0) scale(0.985);
}

.timeline-company-pill.is-entering #timeline-company-label {
  opacity: 1;
  filter: blur(0);
  transform: translateZ(0) scale(1);
}

.timeline-order-toggle {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--timeline-ink-strong);
  font-family: "SF Compact Text Local", "SF Compact Text", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 160ms ease, transform 160ms ease;
}

.timeline-order-toggle:hover,
.timeline-order-toggle:focus-visible {
  opacity: 1;
  transform: scale(1.06);
}

.timeline-order-toggle[aria-pressed="true"] {
  opacity: 1;
}

.timeline-track-wrap {
  position: relative;
  height: calc(100% - 50px);
  overflow: hidden;
}

.timeline-mobile-hint {
  display: none;
}

.timeline-year-pin {
  position: absolute;
  left: calc(var(--timeline-gutter) - 37px);
  top: 25%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-family: "SF Pro Rounded Local", "SF Pro Rounded", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: #cdc6b8;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 12;
}

.timeline-entry.year.is-pin-source {
  opacity: 0 !important;
}

.timeline-track {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-left: 0;
  padding-right: 4px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 102, 118, 0.28) transparent;
  overscroll-behavior: contain;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}

.timeline-track .timeline-entry,
.timeline-track .timeline-backtotop,
.timeline-track .timeline-progress-line,
.timeline-track .timeline-progress-ticks {
  transition:
    opacity 110ms ease-out,
    filter 110ms ease-out,
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-track.is-reordering .timeline-entry,
.timeline-track.is-reordering .timeline-backtotop,
.timeline-track.is-reordering .timeline-progress-line,
.timeline-track.is-reordering .timeline-progress-ticks {
  opacity: 0;
  filter: blur(8px);
}

.timeline-track.is-reordering-in .timeline-entry,
.timeline-track.is-reordering-in .timeline-backtotop,
.timeline-track.is-reordering-in .timeline-progress-line,
.timeline-track.is-reordering-in .timeline-progress-ticks {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(100px);
}

@media (max-width: 1200px) {
  .timeline-track.is-reordering-in .timeline-entry,
  .timeline-track.is-reordering-in .timeline-backtotop,
  .timeline-track.is-reordering-in .timeline-progress-line,
  .timeline-track.is-reordering-in .timeline-progress-ticks {
    transform: translateX(70px);
  }
}

.timeline-track::before,
.timeline-track::after {
  content: "";
  position: sticky;
  left: 0;
  display: block;
  width: 100%;
  height: 52px;
  z-index: 3;
  pointer-events: none;
}

.timeline-track::before {
  top: 0;
  margin-bottom: -52px;
  background: linear-gradient(
    to bottom,
    rgba(248, 243, 234, 1) 0%,
    rgba(248, 243, 234, 0.85) 34%,
    rgba(248, 243, 234, 0) 100%
  );
}

.timeline-track::after {
  bottom: -1px;
  margin-top: -52px;
  background: linear-gradient(
    to top,
    rgba(248, 243, 234, 1) 0%,
    rgba(248, 243, 234, 0.85) 34%,
    rgba(248, 243, 234, 0) 100%
  );
}

.timeline-track::-webkit-scrollbar {
  width: 8px;
}

.timeline-track::-webkit-scrollbar-thumb {
  background: rgba(116, 102, 118, 0.28);
  border-radius: 999px;
}

.timeline-content {
  position: relative;
  height: 3500px;
}

.timeline-line,
.timeline-shortticks,
.timeline-tailticks,
.timeline-mediumticks,
.timeline-progress-line,
.timeline-progress-ticks {
  pointer-events: none;
}

.timeline-line {
  position: absolute;
  left: var(--timeline-gutter);
  top: 0;
  bottom: 0;
  width: 1px;
  background: #ded9cf;
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 50px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 50px), transparent 100%);
}

.timeline-shortticks {
  position: absolute;
  left: var(--timeline-gutter);
  top: 0;
  width: 12px;
  height: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    #ded9cf 0 1px,
    transparent 1px 5px
  );
}

.timeline-tailticks {
  position: absolute;
  left: var(--timeline-gutter);
  width: 12px;
  background-repeat: no-repeat;
}

.timeline-mediumticks {
  position: absolute;
  left: var(--timeline-gutter);
  top: 0;
  width: 24px;
  height: 100%;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 50px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 50px), transparent 100%);
}

.timeline-mediumtick {
  position: absolute;
  left: 0;
  top: 0;
  width: 37px;
  height: 1px;
  background: #ded9cf;
}

.timeline-progress-line {
  display: none;
}

.timeline-progress-ticks {
  display: none;
}

.timeline-top-glow,
.timeline-bottom-fade {
  display: none;
}

.timeline-first-year-line,
.timeline-entry.year::before {
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--timeline-ink-mid) 0 1px,
    transparent 1px 5px
  );
  mask-image: linear-gradient(to right, #000 0%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 97%, transparent 100%);
}

.timeline-first-year-line {
  position: absolute;
  left: var(--timeline-gutter);
  width: calc(100% - var(--timeline-gutter));
  top: var(--first-year-line-y, 0px);
  pointer-events: none;
}

.timeline-trigger-debug {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px solid #39ff14;
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.45);
  pointer-events: none;
  z-index: 8;
}

.timeline-trigger-debug-top {
  top: var(--trigger-debug-top-y, 0px);
}

.timeline-trigger-debug-bottom {
  top: var(--trigger-debug-bottom-y, 0px);
}

.timeline-backtotop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #5f5361;
  color: #fff;
  font-family: "SF Pro Rounded Local", "SF Pro Rounded", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(95, 83, 97, 0.18);
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.timeline-backtotop:hover,
.timeline-backtotop:focus-visible {
  transform: translateX(-50%) scale(1.03);
  background: #4f4551;
}

.timeline-entry {
  position: absolute;
  left: var(--timeline-gutter);
  top: var(--y);
  display: flex;
  align-items: center;
  z-index: 1;
  transform: translateY(-50%);
  transform-origin: left center;
  transition:
    opacity 160ms ease,
    filter 160ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.entry-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0);
  border: 1px solid rgba(255, 95, 74, 0);
  box-shadow: 0 10px 20px rgba(216, 198, 176, 0);
  will-change: transform, filter, opacity;
  transform: translateZ(0) scale(var(--entry-scale, 1));
  transform-origin: left center;
  transition:
    background-color 150ms ease-out,
    border-color 150ms ease-out,
    border-width 150ms ease-out,
    color 150ms ease-out,
    box-shadow 150ms ease-out,
    filter 180ms ease,
    opacity 180ms ease,
    transform 110ms cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-entry .month,
.timeline-entry .label,
.timeline-entry .company,
.timeline-entry::before {
  transition:
    color 150ms ease-out,
    background-color 150ms ease-out,
    top 85ms ease-out,
    height 85ms ease-out;
}

.timeline-entry::before {
  content: "";
  display: block;
  margin-left: 0;
  margin-right: 0;
  height: 1px;
  width: 46px;
  background: #cdc6b8;
  flex-shrink: 0;
}

.timeline-entry.minor {
  color: var(--timeline-ink-strong);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}

.timeline-entry.callout {
  color: #9e93a0;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

.timeline-entry.minor .entry-pill,
.timeline-entry.callout .entry-pill {
  pointer-events: auto;
  cursor: pointer;
}

.timeline-entry.minor .entry-pill:hover .label,
.timeline-entry.minor .entry-pill:focus-visible .label,
.timeline-entry.callout .entry-pill:hover .label,
.timeline-entry.callout .entry-pill:focus-visible .label,
.timeline-entry.callout .entry-pill:hover .month,
.timeline-entry.callout .entry-pill:focus-visible .month {
  color: var(--accent);
}

.timeline-entry.callout .entry-pill {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  gap: 8px;
}

.timeline-entry.callout::before {
  background: #ded9cf;
}

.timeline-entry.callout .month {
  color: var(--accent);
  min-width: auto;
  margin-right: 0;
}

.timeline-entry.callout .label {
  color: #9e93a0;
}

.timeline-welcome-wave {
  margin-right: 6px;
  vertical-align: -0.02em;
}

.timeline-welcome-text {
  display: inline-block;
}

.timeline-entry.minor .month {
  color: var(--muted);
  font-family: "SF Pro Rounded Local", "SF Pro Rounded", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  margin-right: 5px;
  min-width: auto;
}

.timeline-entry.year {
  color: var(--muted);
  line-height: 1;
  z-index: 1;
  left: var(--timeline-gutter);
  right: 0;
  width: auto;
  min-height: 54px;
  justify-content: flex-start;
  overflow: visible;
  transform: none;
}

.timeline-entry.year[data-year="2026"] {
  z-index: 1;
}

.timeline-entry.year[data-year="2026"]::before {
  display: none;
}

.timeline-entry.year .entry-pill {
  display: block;
  position: absolute;
  left: -71px;
  right: auto;
  top: -18px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: rotate(-90deg);
  transform-origin: top right;
  white-space: nowrap;
  overflow: visible;
  filter: blur(var(--year-blur, 1.25px));
}

.timeline-entry.year::before {
  content: "";
  position: absolute;
  display: block;
  left: 0;
  right: 0;
  width: auto;
  top: var(--line-top, 0px);
  margin: 0;
}

.timeline-entry.year::after {
  display: none;
}

.year-mark {
  display: block;
  font-family: "SF Pro Rounded Local", "SF Pro Rounded", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: #cdc6b8;
  margin-right: 0;
}

.company {
  display: none;
}

.timeline-entry.active::before {
  background: var(--accent);
}

.timeline-entry.active .month,
.timeline-entry.active .label,
.timeline-entry.active .company {
  color: var(--accent);
}

.timeline-entry.active .entry-pill {
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid var(--accent);
  box-shadow: 0 10px 20px rgba(216, 198, 176, 0.12);
}

.timeline-entry.active .month,
.timeline-entry.active .label,
.timeline-entry.active .company {
  text-shadow:
    calc(var(--entry-focus, 0) * 0.015em) 0 0 currentColor,
    calc(var(--entry-focus, 0) * -0.015em) 0 0 currentColor;
}

.timeline-entry.active .entry-pill {
  border-width: calc(1px + (var(--entry-focus, 0) * 1px));
  box-shadow: 0 10px 20px rgba(216, 198, 176, 0.12);
}

.story-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  padding: 0 30px;
  height: 100%;
  min-height: 0;
  position: sticky;
  top: 30px;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border: 1px solid #e1d5c1;
  color: var(--ink);
}

.story-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0px,
    rgba(255, 255, 255, 0.72) 18px,
    rgba(255, 255, 255, 0) 48px
  );
}

.story-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding-top: 16px;
  position: relative;
  z-index: 4;
  background: transparent;
  padding-bottom: 10px;
}

.story-head,
.story-scroll,
.story-image,
.story-pills,
.story-notes {
  transition:
    opacity 145ms ease,
    filter 420ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter;
  transform: scale(1);
}

.story-card.is-story-swapping .story-head,
.story-card.is-story-swapping .story-scroll {
  opacity: 0.18;
  filter: blur(9px);
  transform: translate(var(--story-swap-x, 0px), var(--story-swap-y, 10px));
}

.story-head,
.story-scroll {
  transition:
    opacity 120ms ease-out,
    filter 180ms ease-out,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 0;
  padding-bottom: 40px;
  position: relative;
  z-index: 4;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 102, 118, 0.22) transparent;
  --story-scroll-fade: 1;
  --story-scroll-blur: 0px;
  --story-scroll-lift: 0px;
  -webkit-mask-image: none;
  mask-image: none;
}

.story-scroll::before {
  content: "";
  position: sticky;
  top: -2px;
  display: block;
  height: 16px;
  margin-bottom: -16px;
  pointer-events: none;
  z-index: 6;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0px,
    rgba(255, 255, 255, 1) 4px,
    rgba(255, 255, 255, 0) 16px
  );
}


.story-kicker {
  color: var(--muted);
  margin-top: 15px;
  background: none;
  border: 0;
}

.story-head h2 {
  display: inline-block;
  margin: 0;
  font-family: "SF Pro Display Local", "SF Pro Text Local", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 58px;
  font-weight: 100;
  letter-spacing: -0.02em;
  line-height: 1.02;
  padding-bottom: 0.05em;
  color: var(--accent);
}

.story-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: #857785;
  font-weight: 400;
  font-family: "SF Pro Text Local", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.story-copy {
  width: 100%;
  margin: 10px 0 5px;
  line-height: 1.8;
}

.story-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin: 15px 0;
}

.story-pills span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #e1d5c1;
  border-radius: 999px;
  background: #f1ebe4;
  color: var(--muted);
  font-family: "SF Pro Rounded Local", "SF Pro Rounded", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.story-pills span.primary,
.story-pills span:first-child {
  background: #eee7df;
  color: var(--muted);
}

.story-pills span:nth-child(2) {
  background: #ece7eb;
}

.story-pills span:nth-child(3) {
  background: #f0ede7;
  color: var(--muted);
}

.story-image-shell {
  height: 398px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 102, 118, 0.22) transparent;
}

.story-image-shell.has-real-image {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

.story-image-shell.has-real-image::after {
  box-shadow: none;
}

.story-image-shell.has-fpo-ui::after {
  box-shadow: none;
}

.story-image-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(176, 176, 176);
  pointer-events: none;
  z-index: 3;
}

.story-image {
  width: 100%;
  height: 100%;
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background: linear-gradient(140deg, rgba(255, 70, 50, 0.12), rgba(116, 102, 118, 0.18) 62%, rgba(248, 243, 234, 0.78));
}

.story-image-shell.has-real-image .story-image {
  height: auto;
  background: #f7f5f1;
}

.story-image-shell.has-real-image .story-image img {
  display: block;
  width: 100%;
  height: auto;
}

.story-image-fpo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.story-image-fpo--timeline {
  inset: 26px 28px 30px;
  display: block;
  overflow: hidden;
}

.story-image-fpo--default {
  inset: 0;
  background: #bdbdbd;
}

.story-image-fpo--closer {
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.96) 0%, rgba(244, 244, 244, 0.92) 28%, rgba(229, 229, 229, 0.84) 58%, rgba(207, 207, 207, 0.88) 100%),
    linear-gradient(145deg, rgba(232, 232, 232, 0.94), rgba(214, 214, 214, 0.92) 44%, rgba(196, 196, 196, 0.88) 100%);
  overflow: hidden;
}

.story-image-fpo__logo-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.story-image-fpo__logo-tile {
  position: absolute;
  left: var(--logo-x);
  top: var(--logo-y);
  width: var(--logo-w);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 30px rgba(42, 38, 44, 0.12);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(16px) scale(0.92) rotate(var(--logo-rotate));
  animation:
    story-logo-tile-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    story-logo-tile-click 10.8s ease-in-out infinite;
  animation-delay: var(--logo-delay), var(--logo-click-delay);
}

.story-image-fpo__logo-tile-inner {
  width: 112%;
  height: 112%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  transform-origin: center;
}

.story-image-fpo__logo-tile img {
  display: block;
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(46, 42, 48, 0.12));
}

.story-image-fpo__logo-tile svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 74%;
  max-height: 74%;
}

.story-image-fpo__input-shell {
  position: absolute;
  left: 5%;
  width: 90%;
  bottom: 10px;
  height: 19%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 18px 28px rgba(78, 74, 84, 0.08);
  z-index: 6;
}

.story-image-fpo__input-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-image-fpo__input-copy {
  position: absolute;
  left: 20%;
  right: 26%;
  top: 13%;
  height: 1.3em;
  overflow: hidden;
  font-family: "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(92, 92, 92, 0.92);
  white-space: nowrap;
  z-index: 2;
}

.story-image-fpo__input-send {
  position: absolute;
  right: 20%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  opacity: 0.72;
  animation: story-input-send 2s ease-in-out infinite;
  z-index: 3;
}

.story-image-fpo__input-send svg {
  display: block;
  width: 100%;
  height: 100%;
}

.story-image-fpo__input-copy span {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--line-chars) * 1ch + 2px);
  max-width: 100%;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  border-right: 1.5px solid rgba(114, 114, 114, 0.82);
  animation: story-input-line 12s steps(40, end) infinite both;
}

.story-image-fpo__input-copy span:nth-child(2) {
  animation-delay: 2s;
}

.story-image-fpo__input-copy span:nth-child(3) {
  animation-delay: 4s;
}

.story-image-fpo__input-copy span:nth-child(4) {
  animation-delay: 6s;
}

.story-image-fpo__input-copy span:nth-child(5) {
  animation-delay: 8s;
}

.story-image-fpo__input-copy span:nth-child(6) {
  animation-delay: 10s;
}

.story-image-fpo__montage-pointer {
  position: absolute;
  left: 17%;
  top: 19%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: story-montage-pointer 10.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.story-image-fpo__montage-pointer svg {
  display: block;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 6px 12px rgba(116, 102, 118, 0.16));
}

.story-image-fpo__click-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  opacity: 0;
  transform: scale(0.3);
  animation: story-click-pulse 10.8s ease-in-out infinite;
}

.story-image-fpo__stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 92px;
  padding: 0 28px;
  border: 6px solid rgba(255, 255, 255, 0.98);
  border-radius: 26px;
  color: rgba(255, 255, 255, 0.98);
  font-family: "SF Pro Rounded Local", "SF Pro Rounded", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: translate(-50%, -50%) rotate(-16deg);
  box-sizing: border-box;
}

.story-image-fpo__track {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.story-image-fpo__runner {
  --story-fpo-bar-height: 2px;
  --story-fpo-bar-gap: 10px;
  --story-fpo-row-step: calc(var(--story-fpo-bar-height) + var(--story-fpo-bar-gap));
  --story-fpo-group-size: 4;
  --story-fpo-scroll-groups: 8;
  --story-fpo-flick-distance: calc(var(--story-fpo-row-step) * var(--story-fpo-group-size) * var(--story-fpo-scroll-groups));
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  display: flex;
  flex-direction: column;
  gap: var(--story-fpo-bar-gap);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  animation: story-fpo-ticks-up 4.65s cubic-bezier(0.22, 1.2, 0.36, 1) infinite;
}

.story-image-fpo__tickset {
  display: contents;
}

.story-image-fpo__tick {
  height: var(--story-fpo-bar-height);
  border-radius: 999px;
  background: rgba(206, 208, 212, 0.94);
}

.story-image-fpo__tick--short {
  width: 60px;
}

.story-image-fpo__tick--medium {
  width: 75px;
}

.story-image-fpo__tick--long {
  width: 120px;
}

.story-image-fpo__pointer {
  position: absolute;
  left: calc(50% - 18px);
  top: calc(50% - 18px);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0) rotate(0deg);
  animation: story-fpo-pointer 4.65s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.story-image-fpo__pointer svg {
  display: block;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 6px 12px rgba(116, 102, 118, 0.16));
}

@keyframes story-fpo-ticks-up {
  0%,
  25.8% {
    transform: translateY(0);
  }

  36.6%,
  62.4% {
    transform: translateY(calc(var(--story-fpo-flick-distance) * -1));
  }

  73.1%,
  98.9% {
    transform: translateY(calc(var(--story-fpo-flick-distance) * -2));
  }

  99.999% {
    transform: translateY(calc(var(--story-fpo-flick-distance) * -2));
  }

  100% {
    transform: translateY(calc(var(--story-fpo-flick-distance) * -2));
  }
}

@keyframes story-fpo-pointer {
  0%,
  25.8% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.92;
  }

  36.6% {
    transform: translateY(-80px) rotate(-25deg);
    opacity: 1;
  }

  62.4% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.98;
  }

  73.1% {
    transform: translateY(-80px) rotate(-25deg);
    opacity: 1;
  }

  98.9%,
  99.999% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.96;
  }

  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.92;
  }
}

@keyframes story-logo-tile-in {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.92) rotate(var(--logo-rotate));
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--logo-rotate));
  }
}

@keyframes story-logo-tile-click {
  0%,
  8%,
  100% {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 30px rgba(42, 38, 44, 0.12);
    transform: translateY(0) scale(1) rotate(var(--logo-rotate));
  }

  11% {
    border-color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 22px 34px rgba(255, 255, 255, 0.14);
    transform: translateY(0) scale(0.94) rotate(var(--logo-rotate));
  }

  14% {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 30px rgba(42, 38, 44, 0.12);
    transform: translateY(0) scale(1.03) rotate(var(--logo-rotate));
  }

  18% {
    transform: translateY(0) scale(1) rotate(var(--logo-rotate));
  }
}

@keyframes story-montage-pointer {
  0%,
  8% {
    transform: translate(0, 0) rotate(0deg);
  }

  10% {
    transform: translate(0, 0) rotate(-5deg) scale(1);
  }

  11% {
    transform: translate(0, 0) rotate(-5deg) scale(0.86);
  }

  24% {
    transform: translate(106px, -6px) rotate(-10deg) scale(1);
  }

  25% {
    transform: translate(106px, -6px) rotate(-10deg) scale(0.86);
  }

  40% {
    transform: translate(158px, -4px) rotate(-9deg) scale(1);
  }

  41% {
    transform: translate(158px, -4px) rotate(-9deg) scale(0.86);
  }

  56% {
    transform: translate(214px, -2px) rotate(-7deg) scale(1);
  }

  57% {
    transform: translate(214px, -2px) rotate(-7deg) scale(0.86);
  }

  72% {
    transform: translate(22px, 84px) rotate(-9deg) scale(1);
  }

  73% {
    transform: translate(22px, 84px) rotate(-9deg) scale(0.86);
  }

  88% {
    transform: translate(248px, 108px) rotate(-8deg) scale(1);
  }

  89% {
    transform: translate(248px, 108px) rotate(-8deg) scale(0.86);
  }

  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

@keyframes story-input-line {
  0% {
    opacity: 0;
    width: 0;
    transform: translateY(0);
    filter: blur(0);
  }

  2% {
    opacity: 1;
    width: 0;
    transform: translateY(0);
    filter: blur(0);
  }

  8% {
    opacity: 1;
    width: calc(var(--line-chars) * 1ch + 2px);
    transform: translateY(0);
    filter: blur(0);
  }

  11% {
    opacity: 1;
    width: calc(var(--line-chars) * 1ch + 2px);
    transform: translateY(0);
    filter: blur(0);
  }

  14% {
    opacity: 0;
    width: calc(var(--line-chars) * 1ch + 2px);
    transform: translateY(-10px);
    filter: blur(5px);
  }

  15%,
  100% {
    opacity: 0;
    width: 0;
    transform: translateY(-10px);
    filter: blur(5px);
  }
}

@keyframes story-input-send {
  0%,
  54%,
  100% {
    opacity: 0.72;
    transform: translateY(-50%) scale(1);
    filter: brightness(1);
  }

  55% {
    opacity: 1;
    transform: translateY(-50%) scale(1.12);
    filter: brightness(1.18);
  }

  56% {
    opacity: 1;
    transform: translateY(-50%) scale(0.92);
    filter: brightness(1.3);
  }

  60% {
    opacity: 0.76;
    transform: translateY(-62%) scale(1);
    filter: brightness(1);
  }
}

@keyframes story-click-pulse {
  0%,
  8%,
  22%,
  24%,
  38%,
  40%,
  54%,
  56%,
  70%,
  72%,
  86%,
  88%,
  100% {
    opacity: 0;
    transform: scale(0.3);
  }

  11% {
    opacity: 0.9;
    transform: scale(1.2);
  }

  14% {
    opacity: 0;
    transform: scale(2.4);
  }

  25% {
    opacity: 0.9;
    transform: scale(1.2);
  }

  28% {
    opacity: 0;
    transform: scale(2.4);
  }

  41% {
    opacity: 0.9;
    transform: scale(1.2);
  }

  44% {
    opacity: 0;
    transform: scale(2.4);
  }

  57% {
    opacity: 0.9;
    transform: scale(1.2);
  }

  60% {
    opacity: 0;
    transform: scale(2.4);
  }

  73% {
    opacity: 0.9;
    transform: scale(1.2);
  }

  76% {
    opacity: 0;
    transform: scale(2.4);
  }

  89% {
    opacity: 0.9;
    transform: scale(1.2);
  }

  92% {
    opacity: 0;
    transform: scale(2.4);
  }
}


.story-notes {
  display: block;
  padding: 2px 6px 16px 0;
  font-size: 10px;
  line-height: 1.35;
  color: #d0c9d0;
  font-style: italic;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-notes p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #c2bac3;
  font-weight: 400;
  font-family: "SF Pro Text Local", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .timeline-column,
  .timeline-track-wrap,
  .timeline-track {
    cursor: ns-resize;
  }
}

@keyframes wave-intro {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-10deg);
  }
}

@keyframes wave-sway {
  0% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(-10deg);
  }
}

@keyframes wave-intro-mobile {
  from {
    transform: translateY(calc(-48% - 25px)) scale(1) rotate(0deg);
  }

  to {
    transform: translateY(calc(-48% - 25px)) scale(1) rotate(-10deg);
  }
}

@keyframes wave-sway-mobile {
  0% {
    transform: translateY(calc(-48% - 25px)) scale(1) rotate(-10deg);
  }

  50% {
    transform: translateY(calc(-48% - 25px)) scale(1) rotate(10deg);
  }

  100% {
    transform: translateY(calc(-48% - 25px)) scale(1) rotate(-10deg);
  }
}

@keyframes wave-fade-in-mobile {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes loader-pulse {
  from {
    transform: translateX(-8px);
    opacity: 0.55;
  }

  to {
    transform: translateX(8px);
    opacity: 0.9;
  }
}

@media (max-width: 1200px) {
  :root {
    --tablet-timeline-height: 154px;
    --tablet-shell-padding: 16px;
    --tablet-rail-gap: 10px;
  }

  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .timeline-track,
  .story-scroll,
  .sidebar-scroll {
    scrollbar-width: none;
  }

  .timeline-track::-webkit-scrollbar,
  .story-scroll::-webkit-scrollbar,
  .sidebar-scroll::-webkit-scrollbar {
    display: none;
  }

  .page-shell {
    padding: var(--tablet-shell-padding);
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .page-body {
    position: relative;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    grid-template-areas: "sidebar story";
    column-gap: 12px;
    row-gap: 0;
    height: 100%;
    min-height: 100%;
    padding-bottom: calc(var(--tablet-timeline-height) + var(--tablet-rail-gap) + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow: hidden;
  }

  .sidebar-card {
    grid-area: sidebar;
  }

  .story-card {
    grid-area: story;
  }

  .timeline-column {
    grid-area: timeline;
  }

  .sidebar-card,
  .story-card {
    position: static;
    height: 100%;
    min-height: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .timeline-column {
    position: fixed;
    left: var(--tablet-shell-padding);
    right: var(--tablet-shell-padding);
    bottom: calc(max(env(safe-area-inset-bottom, 0px), var(--tablet-rail-gap)) + 25px);
    top: auto;
    transform: none;
    width: auto;
    max-width: 1120px;
    height: var(--tablet-timeline-height);
    min-height: var(--tablet-timeline-height);
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
    z-index: 25;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
  }

  .timeline-head {
    margin-bottom: 0;
    min-height: auto;
    padding-top: 32px;
  }

  .timeline-track-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .timeline-track-wrap::before,
  .timeline-track-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 4;
    pointer-events: none;
  }

  .timeline-track-wrap::before {
    left: 0;
    background: linear-gradient(
      to right,
      rgba(248, 243, 234, 1) 0%,
      rgba(248, 243, 234, 0.82) 48%,
      rgba(248, 243, 234, 0) 100%
    );
  }

  .timeline-track-wrap::after {
    right: 0;
    background: linear-gradient(
      to left,
      rgba(248, 243, 234, 1) 0%,
      rgba(248, 243, 234, 0.82) 48%,
      rgba(248, 243, 234, 0) 100%
    );
  }

  .timeline-track {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    overscroll-behavior: contain;
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
  }

  .timeline-track::before,
  .timeline-track::after,
  .timeline-first-year-line {
    display: none;
  }

  .timeline-content {
    min-width: 100%;
    height: calc(var(--tablet-timeline-height) - 16px);
    overflow: visible;
  }

  .timeline-line {
    top: 79px;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 1px;
    z-index: 1;
    mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 50px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 50px), transparent 100%);
  }

  .timeline-shortticks,
  .timeline-tailticks {
    top: 64px;
    left: 0;
    width: 100%;
    height: 16px;
    background-image: repeating-linear-gradient(
      to right,
      #ded9cf 0 1px,
      transparent 1px 5px
    );
    z-index: 1;
  }

  .timeline-tailticks {
    background-repeat: no-repeat;
  }

  .timeline-mediumticks {
    top: 52px;
    left: 0;
    width: 100%;
    height: 28px;
    mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 50px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 50px), transparent 100%);
    z-index: 1;
  }

  .timeline-mediumtick {
    top: 8px;
    width: 1px;
    height: 28px;
  }

  .timeline-entry {
    left: var(--x);
    top: 23px;
    transform: translateX(-50%);
    transform-origin: center center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .timeline-entry::before {
    position: absolute;
    left: 50%;
    top: calc(100% + 1px);
    transform: translateX(-50%);
    width: 1px;
    height: 29px;
  }

  .entry-pill {
    transform-origin: center center;
  }

  .timeline-entry.year {
    left: var(--x);
    right: auto;
    top: 82px;
    min-height: 0;
    width: auto;
    transform: translateX(-50%);
    justify-content: center;
    z-index: 6;
  }

  .timeline-entry.year::before {
    display: none;
  }

  .timeline-entry.year .entry-pill {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    filter: blur(var(--year-blur, 1.25px));
    position: relative;
    z-index: 6;
  }

  .timeline-entry.year.is-pin-source {
    opacity: 0 !important;
    transition: none !important;
  }

  .timeline-year-pin {
    left: 50%;
    top: 82px;
    transform: translateX(-50%);
  }


  .year-mark {
    transform: none;
  }
  .timeline-backtotop {
    top: 23px;
    transform: translateX(-50%);
  }

  .sidebar-intro {
    display: block;
    min-width: 0;
  }

  .portrait-shell {
    float: left;
    width: 31%;
    min-width: 82px;
    max-width: 94px;
    height: 118px;
    margin: 2px 10px 6px 0;
    flex: 0 0 auto;
    display: block;
  }

  .sidebar-heading,
  .sidebar-scroll,
  .sidebar-bio,
  .rail-section,
  .mini-pills {
    min-width: 0;
    width: 100%;
  }

  .sidebar-heading h1,
  .sidebar-heading p {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .sidebar-heading h1 {
    font-size: 27px;
    line-height: 0.94;
    letter-spacing: -0.025em;
  }

  .sidebar-heading p {
    font-size: 11px;
    line-height: 0.95;
    letter-spacing: 2.2px;
  }

  .sidebar-bio {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sidebar-bio p {
    line-height: 1.3;
  }

  .mini-pills {
    gap: 5px;
  }

  .mini-pills span {
    padding: 7px 5px;
    font-size: 10px;
    letter-spacing: 0.04em;
    line-height: 1;
  }

  .story-pills {
    gap: 5px;
  }

  .story-pills span {
    padding: 7px 5px;
    font-size: 8px;
    letter-spacing: 0.04em;
    line-height: 1;
  }

  .story-head h2 {
    font-size: 42px;
  }

  .story-image-shell {
    height: 384px;
  }

  .story-image-shell.has-real-image {
    height: auto;
  }
}

@media (max-width: 720px) {
  .timeline-mobile-hint {
    position: absolute;
    left: 12px;
    top: var(--mobile-timeline-items-top);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    z-index: 7;
    pointer-events: none;
    color: rgba(116, 102, 118, 0.42);
    font-family: "SF Pro Rounded Local", "SF Pro Rounded", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition:
      opacity 90ms ease-out,
      transform 90ms ease-out;
    animation: timeline-mobile-hint-bob 1.9s ease-in-out infinite;
    opacity: 0;
    transform: translateX(-6px);
  }

  .timeline-mobile-hint.is-visible {
    opacity: 1;
    transform: translateX(0);
  }

  .timeline-mobile-hint.is-hidden {
    opacity: 0;
    transform: translateX(-6px);
    animation: none;
  }

  .timeline-mobile-hint__line {
    white-space: nowrap;
  }

  .timeline-mobile-hint__copy {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .timeline-mobile-hint__chevron {
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1;
    color: rgba(116, 102, 118, 0.58);
    transform: translateY(-1px);
  }

  .timeline-mobile-hint__copy,
  .timeline-mobile-hint__line {
    color: rgba(116, 102, 118, 0.58);
  }

  .timeline-trigger-debug {
    display: none !important;
  }

  :root {
    --mobile-timeline-track-height: 114px;
    --mobile-timeline-head-top: 12px;
    --mobile-timeline-head-height: 29px;
    --mobile-timeline-head-gap: 13px;
    --mobile-timeline-shell-height: 168px;
    --mobile-timeline-year-height: 24px;
    --mobile-timeline-year-bottom-gap: 8px;
    --mobile-timeline-rail-offset: 5px;
    --mobile-timeline-spine-y: calc(77px + var(--mobile-timeline-rail-offset));
    --mobile-timeline-smalltick-height: 16px;
    --mobile-timeline-mediumtick-height: 27px;
    --mobile-timeline-talltick-height: 31px;
    --mobile-timeline-active-tick-height: 43px;
    --mobile-timeline-items-top: calc(9px + var(--mobile-timeline-rail-offset));
    --mobile-timeline-year-top: calc(84px + var(--mobile-timeline-rail-offset));
  }

  body::after {
    display: none !important;
    content: none !important;
  }

  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body.mobile-sidebar-open {
    overflow: hidden;
  }

  body.mobile-sidebar-open .story-card,
  body.mobile-sidebar-open .timeline-column {
    opacity: 0;
    pointer-events: none;
  }

  .page-shell {
    padding: 0;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .page-body {
    position: relative;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
  }

  .sidebar-card,
  .story-card,
  .timeline-column {
    width: min(calc(100vw - 20px), 420px);
    margin: 0;
  }

  .sidebar-card,
  .story-card {
    min-height: 0;
  }

  .sidebar-card {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 0 12px;
    height: auto;
    max-height: calc(100dvh - 32px);
    overflow: hidden;
  }

  .sidebar-card.is-mobile-open {
    position: fixed;
    top: 16px;
    left: 50%;
    right: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) - 6px);
    width: min(calc(100vw - 20px), 420px);
    height: auto;
    max-height: none;
    z-index: 50;
    transform: translateX(-50%);
    background: #fdfaf3;
  }

  .sidebar-heading {
    padding: 0;
    background: transparent;
  }

  .sidebar-heading::after {
    display: none;
  }

  .sidebar-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 0 14px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
  }

  .sidebar-mobile-toggle__photo {
    width: 52px;
    height: 66px;
    border-radius: 10px;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
  }

  .sidebar-mobile-toggle__photo-base,
  .sidebar-mobile-toggle__photo-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition:
      opacity 420ms ease,
      filter 420ms ease;
  }

  .sidebar-mobile-toggle__photo-base {
    background-image: var(--base-headshot);
    opacity: 1;
  }

  .sidebar-mobile-toggle__photo-overlay {
    background-image: var(--overlay-headshot);
    opacity: 0;
    filter: blur(8px);
  }

  .sidebar-mobile-toggle__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
  }

  .sidebar-mobile-toggle__name-row {
    display: flex;
    align-items: center;
    min-width: 0;
    position: relative;
  }

  .sidebar-mobile-toggle__name {
    display: block;
    font-family: "Poppins", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
    font-size: 34px;
    line-height: 0.94;
    letter-spacing: -0.045em;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    white-space: nowrap;
    transform-origin: left center;
  }

  .sidebar-mobile-toggle__wave {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 130%;
    font-size: 38px;
    line-height: 1;
    opacity: 0;
    transform: scale(0.9);
    transform-origin: 70% 80%;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .sidebar-mobile-toggle__role {
    display: block;
    font-family: "SF Pro Rounded Local", "SF Pro Rounded", "SF Pro Text Local", "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.24em;
    font-weight: 400;
    color: var(--muted);
    text-transform: uppercase;
    white-space: nowrap;
    transform-origin: left center;
  }

  .sidebar-mobile-toggle__pullbar {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 44px;
    transform: translateX(-50%);
    display: block;
    line-height: 0;
  }

  .sidebar-mobile-toggle__pullbar svg {
    display: block;
    width: 44px;
    height: 8px;
    overflow: visible;
  }

  .sidebar-mobile-toggle__pullbar polyline {
    stroke: #d9d0c6;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }

  .sidebar-heading h1,
  .sidebar-heading p {
    display: none;
  }

  .sidebar-scroll,
  .sidebar-links {
    display: block;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 220ms ease,
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      max-height 260ms cubic-bezier(0.22, 1, 0.36, 1),
      padding 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sidebar-card.is-mobile-open .sidebar-scroll,
  .sidebar-card.is-mobile-open .sidebar-links {
    opacity: 1;
    max-height: 1000px;
    transform: translateY(0);
    pointer-events: auto;
  }

  .sidebar-card.is-mobile-open .sidebar-mobile-toggle__photo-overlay {
    opacity: 1;
    filter: blur(0);
  }

  .sidebar-card.is-mobile-open .sidebar-mobile-toggle__photo-base {
    opacity: 0;
    filter: blur(0);
  }

  .sidebar-card.is-mobile-open .sidebar-mobile-toggle__wave {
    opacity: 1;
    transform: scale(1);
    animation: wave-fade-in-mobile 0.2s ease-out 1 forwards,
      wave-intro-mobile 0.32s ease-out 1 forwards,
      wave-sway-mobile 1.1s ease-in-out 0.32s infinite;
  }

  .sidebar-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 4px;
    padding-right: 4px;
    scrollbar-gutter: auto;
    background: #fdfaf3;
  }

  .sidebar-card.is-mobile-open .sidebar-scroll {
    padding-top: 4px;
    padding-bottom: 0;
  }

  .sidebar-intro {
    margin-bottom: 18px;
  }

  .portrait-shell {
    display: none;
  }

  .sidebar-bio p {
    font-size: 14px;
    line-height: 1.72;
  }

  .rail-section + .rail-section {
    margin-top: 26px;
  }

  .sidebar-links {
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: none;
    background: #fdfaf3;
    align-self: end;
  }

  .sidebar-card.is-mobile-open .sidebar-links {
    display: flex;
    padding-bottom: 0;
  }

  .story-card {
    position: fixed;
    left: 50%;
    top: calc(16px + var(--mobile-header-height, 110px) + 14px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--mobile-timeline-height, 190px) + 8px);
    transform: translateX(-50%);
    padding: 0;
    z-index: 20;
    height: auto;
  }

  .timeline-track-wrap {
    height: var(--mobile-timeline-track-height);
    overflow: hidden;
  }

  .timeline-track-wrap::before,
  .timeline-track-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    z-index: 4;
    pointer-events: none;
  }

  .timeline-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, #f8f3ea 0%, rgba(248, 243, 234, 0) 100%);
  }

  .timeline-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, #f8f3ea 0%, rgba(248, 243, 234, 0) 100%);
  }

  .timeline-column::before {
    display: none !important;
    content: none !important;
  }

  .timeline-column::after {
    display: none !important;
    content: none !important;
  }

  .timeline-column {
    position: fixed;
    display: flex;
    flex-direction: column;
    left: 50%;
    bottom: env(safe-area-inset-bottom, 0px);
    top: auto;
    transform: translateX(-50%);
    height: var(--mobile-timeline-shell-height);
    min-height: var(--mobile-timeline-shell-height);
    z-index: 25;
  }

  .timeline-head-left {
    gap: 7px;
  }

  .timeline-company-pill {
    min-width: 92px;
    min-height: 24px;
    padding: 0 16px;
  }

  #timeline-company-label {
    font-size: 11px;
  }

  .timeline-content {
    height: var(--mobile-timeline-track-height);
  }

  .timeline-line,
  .timeline-shortticks,
  .timeline-tailticks,
  .timeline-mediumticks {
    top: var(--mobile-timeline-spine-y);
  }

  .timeline-shortticks,
  .timeline-tailticks {
    top: calc(var(--mobile-timeline-spine-y) - var(--mobile-timeline-smalltick-height) + 1px);
    height: var(--mobile-timeline-smalltick-height);
  }

  .timeline-mediumticks {
    top: calc(var(--mobile-timeline-spine-y) - var(--mobile-timeline-mediumtick-height) + 1px);
    height: var(--mobile-timeline-mediumtick-height);
  }

  .timeline-entry {
    top: var(--mobile-timeline-items-top);
  }

  .timeline-entry::before {
    position: absolute;
    left: 50%;
    top: calc(var(--mobile-timeline-spine-y) - var(--mobile-timeline-items-top) - var(--mobile-timeline-talltick-height));
    transform: translateX(-50%);
    width: 1px;
    height: var(--mobile-timeline-talltick-height);
  }

  .timeline-entry.active::before {
    top: calc(var(--mobile-timeline-spine-y) - var(--mobile-timeline-items-top) - var(--mobile-timeline-active-tick-height));
    height: var(--mobile-timeline-active-tick-height);
  }

  .timeline-entry.year {
    top: var(--mobile-timeline-year-top);
  }

  .timeline-year-pin {
    left: 50%;
    top: var(--mobile-timeline-year-top);
    transform: translateX(-50%);
  }


  .timeline-head {
    display: flex;
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: var(--mobile-timeline-head-top) 0 var(--mobile-timeline-head-gap);
    min-height: calc(var(--mobile-timeline-head-height) + 8px);
    z-index: 6;
    border-top: 0;
    border-bottom: 0;
  }

  .timeline-column {
    border-top: 0;
    border-bottom: 0;
  }

  .timeline-order-toggle {
    font-size: 16px;
    padding-top: 1px;
  }

  .story-head h2 {
    font-size: 34px;
    line-height: 1.02;
  }

  .story-copy {
    font-size: 15px;
    line-height: 1.45;
  }

  .story-image-shell {
    height: 264px;
  }

  .story-image-shell.has-real-image {
    height: auto;
  }

  .story-head {
    gap: 8px;
    padding-inline: 16px;
    padding-top: 14px;
    padding-bottom: 2px;
  }

  .story-scroll {
    padding-inline: 16px;
    padding-top: 0;
    padding-bottom: 16px;
    height: 100%;
  }

  .story-pills {
    margin: 18px 0;
  }

  .story-notes {
    padding-top: 10px;
  }
}

@keyframes timeline-mobile-hint-bob {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.34;
  }

  50% {
    transform: translateX(-4px);
    opacity: 0.52;
  }
}
