.bto,
.bto__modal {
  --bto-ink: #333;
  --bto-text: #575756;
  --bto-accent: #c4193e;
  --bto-soft: #edeff1;
  color: var(--bto-text);
  font-family: Circe, Arial, sans-serif;
  font-size: 20px;
}

.bto *,
.bto__modal * {
  box-sizing: border-box;
}

.bto__wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.bto__section {
  padding: 88px 0;
}

.bto h1,
.bto h2,
.bto p,
.bto figure {
  margin: 0;
}

.bto h2 {
  color: var(--bto-ink);
  font-size: clamp(32px, 3.5vw, 49px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.bto__prose {
  font-size: 20px;
  line-height: 1.58;
}

.bto__prose p + p {
  margin-top: 20px;
}

.bto__hero {
  position: relative;
  display: flex;
  min-height: 640px;
  align-items: flex-start;
  overflow: hidden;
  background: #333;
  color: #fff;
}

.bto__hero-photo,
.bto__hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bto__hero-photo {
  object-fit: cover;
  object-position: center 67%;
}

.bto__hero-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .46) 48%, rgba(0, 0, 0, .06) 100%), linear-gradient(0deg, rgba(0, 0, 0, .38), transparent 65%);
}

.bto__hero-content {
  position: relative;
  z-index: 1;
  padding-top: 94px;
  padding-bottom: 170px;
}

.bto__hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(58px, 7.4vw, 112px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.bto__hero p {
  max-width: 570px;
  margin-top: 32px;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.35;
}

.bto__intro {
  background: #fff;
}

.bto__intro-grid,
.bto__section-heading,
.bto__journeys-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 7%;
}

.bto .bto__intro-photo {
  position: relative;
  max-width: 430px;
  margin: 16px 30px 0 4px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 22px 45px rgba(0, 0, 0, .19);
  transform: rotate(-3deg);
}

.bto__intro-photo::before {
  position: absolute;
  top: -17px;
  left: 43%;
  width: 86px;
  height: 26px;
  background: rgba(196, 25, 62, .28);
  content: '';
  transform: rotate(7deg);
}

.bto__intro-photo img {
  display: block;
  width: 100%;
  height: 325px;
  object-fit: cover;
}

.bto__intro-last {
  position: relative;
  margin: 36px 0 0;
  padding: 30px 28px 30px 36px;
  border-left: 4px solid var(--bto-accent);
  border-radius: 0 12px 12px 0;
  background: var(--bto-soft);
  color: var(--bto-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.bto__films {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  color: var(--bto-text);
}

.bto__films::before {
  position: absolute;
  top: -240px;
  right: -160px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(196, 25, 62, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(196, 25, 62, .025), 0 0 0 160px rgba(196, 25, 62, .02);
  content: '';
  pointer-events: none;
}

.bto__films .bto__wrap {
  position: relative;
}

.bto__section-heading {
  align-items: end;
  gap: clamp(36px, 6vw, 100px);
  margin-bottom: 56px;
  padding-top: 32px;
  border-top: 1px solid #d8d8d8;
}

.bto__films-heading {
  padding-left: 28px;
  border-left: 5px solid var(--bto-accent);
}

.bto__films-eyebrow {
  display: block;
  margin-bottom: 19px;
  color: var(--bto-accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bto__films .bto__section-heading h2 {
  color: var(--bto-ink);
  font-size: clamp(40px, 4.7vw, 66px);
}

.bto__films .bto__section-heading .bto__prose {
  color: var(--bto-text);
}

.bto__film-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.bto__film-link {
  position: relative;
  display: flex;
  min-height: 370px;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bto-ink);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .15);
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

main.bto a.bto__film-link:visited {
  color: #fff;
}

.bto__film-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.bto__film-link::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .26), rgba(0, 0, 0, .18) 35%, rgba(0, 0, 0, .88) 100%);
  content: '';
}

.bto__film-link::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--bto-accent);
  content: '';
}

.bto__film-link > span {
  position: relative;
  z-index: 3;
}

.bto__film-play {
  display: flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  padding-left: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .22);
  color: var(--bto-accent);
  font-size: 20px;
  transition: transform .2s ease, background-color .2s ease;
}

.bto__film-link:hover .bto__film-play,
.bto__film-link:focus .bto__film-play {
  background: var(--bto-accent);
  color: #fff;
  transform: scale(1.08);
}

.bto__film-link:hover .bto__film-image,
.bto__film-link:focus .bto__film-image {
  transform: scale(1.05);
}

.bto__film-link:hover,
.bto__film-link:focus {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .26);
  color: #fff;
  text-decoration: none;
}

.bto__film-link:focus-visible,
.bto__modal-close:focus-visible {
  outline: 3px solid var(--bto-accent);
  outline-offset: 3px;
}

.bto__film-name {
  max-width: 420px;
  margin: 40px 0 24px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.12;
}

.bto__film-action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.bto__film-action span {
  font-size: 25px;
  line-height: 1;
}

.bto__routes {
  background: linear-gradient(105deg, #edeff1 0%, #f5f5f5 42%, #fff 100%);
}

.bto__routes-top {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.65fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.bto__routes-heading h2 {
  color: var(--bto-ink);
  font-size: clamp(33px, 3.4vw, 46px);
  line-height: 1.08;
}

.bto__routes-heading p {
  margin-top: 25px;
  color: var(--bto-text);
  font-size: 20px;
  line-height: 1.5;
}

.bto__routes-gallery {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 20px 10px 28px;
}

.bto .bto__route-photo {
  position: relative;
  width: calc(25% + 15px);
  height: clamp(215px, 22vw, 255px);
  flex: 0 0 calc(25% + 15px);
  overflow: hidden;
  border: 7px solid #fff;
  border-bottom-width: 13px;
  background: #edeff1;
  box-shadow: 0 15px 24px rgba(0, 0, 0, .18);
  transform: rotate(-2deg);
}

.bto .bto__route-photo + .bto__route-photo {
  margin-left: -20px;
}

.bto__route-photo:nth-child(2) {
  z-index: 2;
  transform: translateY(12px) rotate(2.5deg);
}

.bto__route-photo:nth-child(3) {
  z-index: 1;
  transform: translateY(-6px) rotate(-1.5deg);
}

.bto__route-photo:nth-child(4) {
  transform: translateY(10px) rotate(2deg);
}

.bto__route-photo img,
.bto__japan-photos img,
.bto__cake-photos img,
.bto__beijing-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bto__routes-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 7vw, 100px);
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, .2);
}

.bto__routes-copy p {
  color: var(--bto-text);
  font-size: 20px;
  line-height: 1.56;
}

.bto__routes-copy p + p {
  margin-top: 20px;
}

.bto__journeys {
  background: #f5f5f5;
}

.bto__journeys-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.bto__journeys-copy h2 {
  margin-bottom: 32px;
}

.bto__japan-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
}

.bto__japan-photos figure {
  height: 420px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, .13);
}

.bto__japan-photos figure + figure {
  height: 330px;
  transform: translateY(22px) rotate(3deg);
}

.bto__beijing {
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(0, 44%);
  padding: 0;
  background: #333;
  color: #fff;
}

.bto__beijing-photo {
  position: relative;
  min-height: 740px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.bto__beijing-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center 58%;
}

.bto__beijing-inner {
  max-width: none;
  margin: 0;
  padding: 64px clamp(30px, 4.2vw, 72px);
}

.bto__beijing-copy {
  max-width: 590px;
}

.bto__beijing h2 {
  margin-bottom: 28px;
  color: #fff;
  font-size: clamp(33px, 3vw, 46px);
}

.bto__beijing .bto__prose {
  font-size: 20px;
}

main.bto .bto__beijing a.bto__beijing-video {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 12px 19px 12px 23px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.bto__beijing-video span {
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
}

main.bto .bto__beijing a.bto__beijing-video:visited {
  color: #fff;
}

main.bto .bto__beijing a.bto__beijing-video:hover,
main.bto .bto__beijing a.bto__beijing-video:focus,
main.bto .bto__beijing a.bto__beijing-video:active {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  text-decoration: none;
}

main.bto .bto__beijing a.bto__beijing-video:focus {
  outline: none;
}

main.bto .bto__beijing a.bto__beijing-video:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.bto__cake-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 35px;
}

.bto__cake-photos figure {
  position: relative;
  height: 180px;
  overflow: hidden;
  border: 6px solid #fff;
  border-bottom-width: 13px;
  background: #575756;
  box-shadow: 0 15px 30px rgba(0, 0, 0, .24);
}

.bto__cake-photos figure:first-child {
  transform: rotate(-3deg);
}

.bto__cake-photos figure:last-child {
  transform: rotate(3deg) translateY(10px);
}

.bto__stats {
  padding: 0;
  border-top: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
  background: #fff;
}

.bto__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.bto__stat {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 16px;
  padding: 38px 20px;
  border-right: 1px solid #dedede;
}

.bto__stat:first-child {
  padding-left: 0;
}

.bto__stat:last-child {
  padding-right: 0;
  border-right: 0;
}

.bto__stat svg {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  fill: none;
  stroke: var(--bto-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.bto__stat > div {
  min-width: 0;
}

.bto__stat strong {
  display: block;
  color: var(--bto-ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.bto__stat div span {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.3;
}

.bto__modal[hidden] {
  display: none !important;
}

.bto__modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bto__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(245, 245, 245, .94);
  backdrop-filter: blur(4px);
}

.bto__modal-panel {
  position: relative;
  width: min(100%, 960px);
  max-height: calc(100vh - 40px);
  padding: 18px;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 75px rgba(0, 0, 0, .36);
}

.bto__modal-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px 16px;
  background: #fff;
  color: var(--bto-ink);
}

.bto__modal-header h2 {
  margin: 0;
  color: var(--bto-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.bto__modal-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--bto-accent);
  border-radius: 50%;
  background: #fff;
  color: var(--bto-accent);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 29px;
  line-height: 1;
}

.bto__modal-close:hover,
.bto__modal-close:focus-visible {
  background: #f8e8ec;
  color: var(--bto-accent);
}

.bto__modal-close:focus-visible {
  outline: 3px solid var(--bto-accent);
  outline-offset: 2px;
}

.bto__modal-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bto-soft);
}

.bto__modal-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bto-soft);
}

@media (max-width: 900px) {
  .bto__routes-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bto__routes-heading h2 {
    max-width: 760px;
  }

  .bto__routes-heading p {
    max-width: 700px;
  }

  .bto__routes-copy {
    gap: 36px;
  }

  .bto__section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .bto__beijing,
  .bto__stats {
    padding: 0;
  }

  .bto__intro-grid,
  .bto__section-heading,
  .bto__journeys-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bto__section-heading {
    align-items: start;
  }

  .bto .bto__intro-photo {
    max-width: 440px;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .bto__beijing {
    grid-template-columns: 1fr;
  }

  .bto__beijing-photo {
    min-height: 0;
    height: 480px;
    clip-path: polygon(0 0, 100% 0, 100% 87%, 0 100%);
  }

  .bto__beijing-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 32px;
  }

  .bto__beijing-copy {
    max-width: none;
  }

  .bto__stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bto__stat {
    padding: 32px 18px;
  }

  .bto__stat:first-child {
    padding-left: 18px;
  }

  .bto__stat:nth-child(2) {
    border-right: 0;
  }

  .bto__stat:nth-child(-n+2) {
    border-bottom: 1px solid #dedede;
  }
}

@media (max-width: 600px) {
  .bto__section-heading {
    margin-bottom: 34px;
    padding-top: 24px;
  }

  .bto__films-heading {
    padding-left: 20px;
    border-left-width: 4px;
  }

  .bto__films-eyebrow {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .bto__films .bto__section-heading h2 {
    font-size: clamp(34px, 9vw, 42px);
  }

  .bto__routes-heading h2 {
    font-size: clamp(33px, 9vw, 40px);
  }

  .bto__routes-heading p {
    margin-top: 18px;
    font-size: 20px;
  }

  .bto__routes-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 10px 22px;
  }

  .bto .bto__route-photo,
  .bto .bto__route-photo + .bto__route-photo {
    width: calc(100% + 16px);
    height: clamp(180px, 52vw, 230px);
    margin-left: -8px;
    border-width: 5px;
    border-bottom-width: 10px;
  }

  .bto .bto__route-photo:nth-child(n+3) {
    margin-top: -15px;
  }

  .bto__routes-copy {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
    padding-top: 24px;
  }

  .bto__routes-copy p {
    font-size: 20px;
  }

  .bto__wrap {
    padding-right: 20px;
    padding-left: 20px;
  }

  .bto__section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .bto__beijing,
  .bto__stats {
    padding: 0;
  }

  .bto__hero {
    min-height: 620px;
    align-items: flex-start;
  }

  .bto__hero-photo {
    object-position: 51% 60%;
  }

  .bto__hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .58) 40%, rgba(0, 0, 0, .08) 100%);
  }

  .bto__hero-content {
    padding-top: 68px;
    padding-bottom: 260px;
  }

  .bto__hero h1 {
    font-size: clamp(47px, 13vw, 74px);
  }

  .bto__hero p {
    margin-top: 23px;
    font-size: 20px;
  }

  .bto h2 {
    font-size: clamp(31px, 9vw, 40px);
  }

  .bto__prose {
    font-size: 20px;
    line-height: 1.55;
  }

  .bto .bto__intro-photo {
    max-width: 360px;
    margin: 10px 12px 25px 4px;
  }

  .bto__intro-photo img {
    height: 205px;
  }

  .bto__intro-last {
    margin-top: 28px;
    padding: 24px 20px;
    font-size: 20px;
  }

  .bto__film-links {
    grid-template-columns: 1fr;
  }

  .bto__film-link {
    min-height: 300px;
    padding: 24px;
  }

  .bto__film-play {
    width: 50px;
    height: 50px;
    margin-bottom: auto;
    font-size: 20px;
  }

  .bto__film-name {
    margin-top: 30px;
    margin-bottom: 16px;
    font-size: 25px;
  }

  .bto__japan-photos figure {
    height: 310px;
  }

  .bto__japan-photos figure + figure {
    height: 240px;
    transform: translateY(14px) rotate(2deg);
  }

  .bto__beijing-photo {
    height: 300px;
  }

  .bto__beijing-photo img {
    object-position: center 58%;
  }

  .bto__beijing-inner {
    padding: 48px 20px;
  }

  .bto__beijing h2 {
    margin-bottom: 25px;
  }

  .bto__cake-photos {
    gap: 8px;
    margin-top: 28px;
  }

  .bto__cake-photos figure {
    height: 175px;
    border-width: 4px;
    border-bottom-width: 10px;
  }

  .bto__cake-photos figure:first-child {
    transform: rotate(-2deg);
  }

  .bto__cake-photos figure:last-child {
    transform: rotate(2deg) translateY(6px);
  }

  .bto__stats-grid {
    grid-template-columns: 1fr;
  }

  .bto__stat {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid #dedede;
  }

  .bto__stat:first-child {
    padding-left: 0;
  }

  .bto__stat:last-child {
    border-bottom: 0;
  }

  .bto__stat strong {
    font-size: 26px;
  }

  .bto__stat svg {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .bto__modal {
    padding: 10px;
  }

  .bto__modal-panel {
    max-height: calc(100vh - 20px);
    padding: 12px;
    border-radius: 14px;
  }

  .bto__modal-header {
    min-height: 58px;
    padding: 0 4px 12px;
  }

  .bto__modal-header h2 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bto__film-link,
  .bto__film-play {
    transition: none;
  }
}
