.rails {
  --ink: #0e1116;
  --text: #17202e;
  --muted: #536071;
  --orange: #ea5a1e;
  --peach: #ffb48a;
  color: var(--text);
  font: 1.0625rem/1.55 Inter, system-ui, sans-serif;
}
.rails *, .rails *::before, .rails *::after { box-sizing: border-box; }
.rails h1, .rails h2, .rails h3, .rails blockquote {
  font-family: 'Space Grotesk', Inter, sans-serif;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin: 0;
}
.rails h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); text-wrap: balance; }
.rails h3 { font-size: clamp(1.35rem, 2vw, 1.72rem); }
.rails p { margin: 0; }
.rails a { text-underline-offset: .22em; }
.rails-wrap { width: 100%; max-width: 1248px; padding-inline: 24px; margin-inline: auto; }
.rails-hero, .rails-year { background: var(--ink); color: white; }
.rails-hero-grid {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center; gap: clamp(8px, 2vw, 30px); padding-block: clamp(40px, 5.4vw, 78px);
}
.rails-hero-copy { position: relative; z-index: 1; }
.rails h1 { font-size: clamp(3rem, 5.85vw, 5.2rem); letter-spacing: -.059em; line-height: 1; }
.rails h1 span { display: block; color: var(--peach); }
.rails-hero-copy p { color: #d1d5dc; margin: 1.35rem 0 1.65rem; font-size: clamp(1.06rem, 1.45vw, 1.25rem); max-width: 32em; }
.rails-hero-art { line-height: 0; background: var(--ink); }
.rails-hero-art img { display: block; width: 100%; height: auto; mask-image: radial-gradient(ellipse 72% 79% at 52% 46%, #000 52%, transparent 98%); }
.rails-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.rails-button, .rails-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 48px;
  padding: .84rem 1.12rem; font-size: 1rem; font-weight: 700; line-height: 1.35; border-radius: 11px; text-decoration: none;
}
.rails-button { background: #ff8047; color: #23130f; }
.rails-button:hover { background: #ff9c70; }
.rails-secondary { color: #fff; border: 1px solid #525b68; }
.rails-secondary:hover { background: #242a33; }
.rails-launch, .rails-talk, .rails-close { padding-block: clamp(3rem, 6vw, 5.3rem); }
.rails-path { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2rem 0 0; padding: 0; }
.rails-path li { position: relative; padding-right: clamp(1rem, 3vw, 3rem); }
.rails-path li:not(:last-child)::before { content: ''; position: absolute; inset: 8px 0 auto 0; height: 3px; background: #f3b493; }
.rails-marker { display: block; position: relative; margin: 0 0 1rem; width: 19px; height: 19px; border-radius: 100%; border: 3px solid #c84e19; background: white; }
.rails-path li:last-child .rails-marker { background: var(--orange); border-color: var(--orange); box-shadow: inset 0 0 0 3px #fff; }
.rails-path p, .rails-card-copy p, .rails-talk p, .rails-close p { color: var(--muted); margin-top: .7rem; }
.rails-operations { background: #f3f5f8; padding-block: clamp(3rem, 6vw, 5.3rem); scroll-margin-top: 5rem; }
.rails-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 1.8vw, 1.5rem); margin-top: 2rem; }
.rails-card { overflow: hidden; border: 1px solid #dde2e9; border-radius: 21px; background: white; }
.rails-figure { height: 186px; display: grid; place-items: center; font-size: .78rem; line-height: 1.25; }
.rails-finance { background: #fde9de; }
.rails-ledger, .rails-answer, .rails-flow span { border: 1px solid #b9c2ca; background: white; border-radius: 10px; box-shadow: 0 5px 0 rgb(28 36 46 / 8%); }
.rails-ledger { width: min(195px, 83%); padding: 12px 14px 8px; transform: rotate(-3deg); }
.rails-ledger > span { font-weight: 700; }
.rails-bars { margin-top: 10px; height: 55px; border-bottom: 1px solid #bfc7cd; display: flex; align-items: end; gap: 5px; background: repeating-linear-gradient(to top, transparent 0 17px,#e7eaef 17px 18px); }
.rails-bars i { flex: 1; height: 35%; background: #e65f25; border-radius: 3px 3px 0 0; }
.rails-bars i:nth-child(2) { height: 47%; }.rails-bars i:nth-child(3) { height: 40%; }.rails-bars i:nth-child(4) { height: 59%; }.rails-bars i:nth-child(5) { height: 68%; }.rails-bars i:nth-child(6) { height: 61%; }.rails-bars i:nth-child(7) { height: 91%; }
.rails-axis { display: flex; justify-content: space-between; margin-top: 4px; }
.rails-ai { background: #e2e9f6; }
.rails-dialog { width: min(238px, 87%); display: grid; }
.rails-prompt { position: relative; z-index: 1; justify-self: end; padding: 10px 12px; border-radius: 12px 12px 3px 12px; color: white; background: #283448; font-weight: 600; transform: rotate(2deg); }
.rails-answer { width: 81%; margin-top: 8px; padding: 12px; rotate: -3deg; font-weight: 600; }
.rails-answer i { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; background: var(--orange); }
.rails-answer span { display: block; height: 5px; width: 80%; margin-top: 8px; border-radius: 6px; background: #d4deed; }
.rails-answer span:last-child { width: 57%; }
.rails-market { background: #e0efe8; }
.rails-flow { width: min(174px, 80%); display: grid; justify-items: center; }
.rails-flow span { width: 100%; padding: 6px 10px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.rails-flow i { width: 20px; height: 20px; border-radius: 6px; background: #fce4d6; display: grid; place-items: center; font-style: normal; color: #973c12; font-weight: 700; }
.rails-flow span:last-child i { color: #17563a; background: #d6e9dc; }
.rails-flow b { line-height: 17px; color: #3f6858; }
.rails-card-copy { padding: clamp(1.22rem, 2vw, 1.85rem); }
.rails-card-copy p { font-size: 1rem; }
.rails-talk, .rails-year-inner { display: grid; grid-template-columns: 1fr .86fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.rails-talk p { max-width: 36rem; }
.rails-link { display: inline-flex; align-items: center; gap: .6rem; margin-top: .75rem; min-height: 44px; font-weight: 700; color: #a23b0d; }
.rails blockquote { padding: clamp(1.6rem, 3.2vw, 2.7rem); border-radius: 20px; background: #ffede2; color: #492718; font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 600; }
.rails blockquote > span { display: block; height: 2.1rem; font: 700 4.6rem/.9 Georgia, serif; color: #c24b16; }
.rails-year-inner { padding-block: clamp(2.8rem, 5vw, 4.8rem); }
.rails-year h2 { color: var(--peach); max-width: 16em; }
.rails-year p { color: #d1d5dc; margin-top: 1rem; }
.rails-year a { justify-self: end; }
.rails-close { text-align: center; }
.rails-close p { max-width: 42rem; margin-inline: auto; }
.rails-close .rails-button { margin-top: 1.2rem; }
.rails-close .rails-related { font-size: .93rem; margin-top: 1.2rem; }
.rails-related a { color: #973b16; }
@media (max-width: 900px) and (min-width: 761px) {
  .rails-hero-grid { grid-template-columns: 1.1fr 1fr; }
  .rails-cards { gap: .7rem; }
  .rails-card-copy { padding: 1rem; }
}
@media (max-width: 760px) {
  .rails-wrap { padding-inline: 20px; }
  .rails-hero-grid, .rails-talk, .rails-year-inner { grid-template-columns: 1fr; }
  .rails-hero-grid { gap: 1rem; padding-block: 2.8rem 1.3rem; }
  .rails h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
  .rails-hero-art { width: min(100%, 540px); justify-self: center; }
  .rails-hero-art img { max-height: 340px; object-fit: contain; }
  .rails-cards { grid-template-columns: 1fr; }
  .rails-path { grid-template-columns: 1fr; }
  .rails-path li { padding: 0 0 1.55rem 2rem; }
  .rails-path li:last-child { padding-block-end: 0; }
  .rails-marker { position: absolute; left: 0; top: .22rem; }
  .rails-path li:not(:last-child)::before { inset: .65rem auto -.6rem 8px; width: 3px; height: auto; }
  .rails-year a { justify-self: start; }
}
@media (min-width: 530px) and (max-width: 760px) {
  .rails-card { display: grid; grid-template-columns: .7fr 1fr; }
  .rails-figure { height: 100%; }
}
