:root {
  --story-ink: #0f2246;
  --story-green: #089c39;
  --story-orange: #ec5b36;
  --story-cream: #f7f3e8;
  --story-pale: #eef3f6;
  --story-line: #d8dee6;
}

html {
  scroll-behavior: smooth;
}

.story-page {
  color: var(--story-ink);
  background: #fff;
}

.story-page main {
  overflow: hidden;
}

.story-page h1,
.story-page h2,
.story-page h3,
.story-hero__lead,
.story-hero__phrase,
.story-punchline {
  word-break: keep-all;
  overflow-wrap: normal;
}

.story-page p,
.story-page li {
  font-size: 17px;
  line-height: 2;
  letter-spacing: .03em;
}

@supports (word-break: auto-phrase) {
  .story-page p:not(.story-hero__lead):not(.story-hero__phrase):not(.story-punchline),
  .story-page li,
  .story-page summary {
    word-break: auto-phrase;
  }
}

.story-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.story-narrow {
  width: min(780px, calc(100% - 48px));
}

.story-kicker,
.story-chapter {
  margin: 0 0 20px;
  color: var(--story-orange);
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: .18em !important;
  line-height: 1.5 !important;
}

.story-hero {
  position: relative;
  padding: 78px 0 0;
  background:
    radial-gradient(circle at 8px 8px, rgba(236, 91, 54, .18) 1.5px, transparent 1.6px) 0 0 / 24px 24px,
    linear-gradient(115deg, #fffaf5 0%, #fff 58%, #eef6ef 100%);
}

.story-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 40px;
  align-items: center;
}

.story-hero h1 {
  margin: 0;
  font-size: clamp(50px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -.06em;
  color: var(--story-ink);
}

.story-hero h1 span {
  white-space: nowrap;
  color: var(--story-orange);
}

.story-hero__lead {
  margin: 32px 0 8px;
  font-size: clamp(22px, 2.3vw, 30px) !important;
  font-weight: 800;
  line-height: 1.5 !important;
}

.story-hero__text {
  margin: 0 0 28px;
  max-width: 620px;
}

.story-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 99px;
  background: var(--story-orange);
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(236, 91, 54, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.story-button::after {
  content: "→";
  margin-left: 12px;
}

.story-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(236, 91, 54, .34);
}

.story-hero__photo {
  position: relative;
  margin: 0;
  align-self: end;
}

.story-hero__photo::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 76%;
  aspect-ratio: 1;
  top: -34px;
  right: -34px;
  border-radius: 50%;
  background: #ffd969;
}

.story-hero__photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: 42% center;
  border-radius: 160px 160px 24px 24px;
  box-shadow: 0 24px 54px rgba(15, 34, 70, .18);
}

.story-hero__photo figcaption {
  position: absolute;
  z-index: 2;
  right: -14px;
  bottom: 26px;
  padding: 15px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(15, 34, 70, .15);
  font-size: 13px;
  line-height: 1.6;
}

.story-hero__photo figcaption strong {
  font-size: 20px;
}

.story-hero__photo figcaption span {
  margin-left: 8px;
  color: #6a7589;
  font-size: 11px;
}

.story-hero__phrase {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 48px));
  margin: 60px auto 0;
  padding: 30px 42px;
  transform: translateY(32px);
  border-radius: 18px;
  background: var(--story-ink);
  color: #fff;
  font-size: clamp(24px, 3.4vw, 42px) !important;
  font-weight: 900;
  line-height: 1.35 !important;
  text-align: center;
}

.story-hero__phrase span {
  color: #ffd969;
}

.story-sp {
  display: none;
}

.story-index {
  padding: 100px 0 68px;
  background: var(--story-cream);
}

.story-index p {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.story-index ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ddd5c5;
  border-radius: 14px;
  background: #ddd5c5;
  list-style: none;
}

.story-index li {
  background: #fff;
}

.story-index a {
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 0 20px;
  color: var(--story-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}

.story-index a span {
  margin-right: 12px;
  color: var(--story-orange);
  font-size: 12px;
}

.story-section {
  padding: 120px 0;
  scroll-margin-top: 80px;
}

.story-section h2 {
  margin: 0 0 44px;
  font-size: clamp(36px, 4.25vw, 54px);
  line-height: 1.25;
  letter-spacing: -.04em;
}

.story-section h3 {
  font-size: 22px;
  line-height: 1.5;
}

.story-section p {
  margin: 0 0 26px;
}

.story-section a {
  color: var(--story-green);
}

.story-callout {
  position: relative;
  margin: 54px 0;
  padding: 34px 38px;
  border: 2px solid var(--story-orange);
  border-radius: 16px;
  background: #fff9f6;
}

.story-callout::before {
  content: "!";
  position: absolute;
  left: -22px;
  top: -26px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--story-orange);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.story-callout p:last-child {
  margin-bottom: 0;
}

.story-callout__label {
  margin-bottom: 8px !important;
  color: var(--story-orange);
  font-size: 19px !important;
  font-weight: 900;
}

.story-section blockquote {
  margin: 56px -70px;
  padding: 44px 60px;
  border-left: 8px solid #ffd969;
  background: var(--story-ink);
  color: #fff;
}

.story-section blockquote p {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.55;
}

.story-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 90px;
  border-top: 3px solid var(--story-ink);
}

.story-timeline article {
  position: relative;
  padding: 34px 24px 0 0;
}

.story-timeline article::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--story-orange);
}

.story-timeline time {
  color: var(--story-orange);
  font-size: 18px;
  font-weight: 900;
}

.story-timeline h3 {
  margin: 6px 0 8px;
}

.story-timeline p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.story-source {
  margin-top: 34px !important;
  color: #6a7589;
  font-size: 12px !important;
  text-align: right;
}

.story-section--tint {
  background: var(--story-pale);
}

.story-heading-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.story-heading-grid h2 {
  font-size: clamp(36px, 3.7vw, 48px);
}

.story-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.story-principles article {
  padding: 30px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 34, 70, .07);
}

.story-principles article > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffd969;
  color: var(--story-ink);
  font-size: 24px;
  font-weight: 900;
}

.story-principles h3 {
  margin: 20px 0 8px;
}

.story-principles p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.story-failure {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  margin-top: 70px;
  padding: 42px;
  border-radius: 18px;
  background: #ffd969;
}

.story-failure h3 {
  margin: 10px 0 0;
  font-size: 28px;
}

.story-failure p {
  margin: 0;
}

.story-failure__tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--story-ink);
  color: #fff;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.4 !important;
}

.story-section--dark {
  background: var(--story-ink);
  color: #fff;
}

.story-section--dark .story-chapter {
  color: #ffd969;
}

.story-section--dark h2 {
  max-width: 900px;
}

.story-lead {
  max-width: 800px;
  font-size: 22px !important;
  font-weight: 800;
}

.story-offline {
  margin: 66px 0;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
}

.story-offline__line {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 30px;
}

.story-offline__line span {
  color: #ff8870;
  font-size: 24px;
  font-weight: 900;
}

.story-offline__line i {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, #ff8870 0 10px, transparent 10px 18px);
}

.story-offline__line strong {
  color: #ffd969;
  font-size: 28px;
}

.story-offline ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-offline li {
  padding: 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--story-ink);
  text-align: center;
}

.story-offline li span,
.story-offline li b {
  display: block;
}

.story-offline li span {
  font-size: 13px;
}

.story-offline li b {
  color: var(--story-green);
  font-size: 18px;
}

.story-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.story-columns h3 {
  color: #ffd969;
}

.story-punchline {
  margin: 78px 0 0 !important;
  padding: 32px;
  border: 2px solid #ffd969;
  border-radius: 14px;
  color: #ffd969;
  font-size: clamp(24px, 3vw, 38px) !important;
  font-weight: 900;
  line-height: 1.5 !important;
  text-align: center;
}

.story-case {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  align-items: center;
  margin: 66px 0 30px;
  padding: 44px;
  border-radius: 18px;
  background: var(--story-cream);
}

.story-case__num {
  margin: 0 !important;
  color: var(--story-orange);
  font-size: 56px !important;
  font-weight: 900;
  line-height: 1 !important;
  white-space: nowrap;
}

.story-case h3 {
  margin-top: 0;
  font-size: 28px;
}

.story-case p:last-child {
  margin-bottom: 0;
}

.story-price {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  margin-top: 30px;
  padding: 50px;
  border-radius: 18px;
  background: var(--story-green);
  color: #fff;
}

.story-price__small {
  margin-bottom: 12px !important;
  color: #d7ffdf;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .15em !important;
}

.story-price h3 {
  margin: 0;
  font-size: 28px;
}

.story-tech-title span {
  white-space: nowrap;
}

.story-price p:last-child {
  margin-bottom: 0;
}

.story-section--hospitality {
  background:
    linear-gradient(rgba(247, 243, 232, .96), rgba(247, 243, 232, .96)),
    radial-gradient(circle at 10% 20%, #ffd969 0 8%, transparent 8.2%);
}

.story-section--faq {
  background: #fff;
}

.story-faq {
  border-top: 2px solid var(--story-ink);
}

.story-faq details {
  border-bottom: 1px solid var(--story-line);
}

.story-faq summary {
  position: relative;
  padding: 28px 70px 28px 48px;
  cursor: pointer;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.6;
  list-style: none;
}

.story-faq summary::-webkit-details-marker {
  display: none;
}

.story-faq summary::before {
  content: "Q";
  position: absolute;
  left: 8px;
  color: var(--story-orange);
  font-size: 22px;
  font-weight: 900;
}

.story-faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--story-green);
  font-size: 30px;
}

.story-faq details[open] summary::after {
  content: "−";
}

.story-faq details div {
  padding: 0 48px 28px;
}

.story-faq details p {
  margin: 0;
}

.story-closing {
  padding: 100px 0;
  background: var(--story-orange);
  color: #fff;
}

.story-closing__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
}

.story-closing .story-kicker {
  color: #ffe0d7;
}

.story-closing h2 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1.35;
}

.story-closing p {
  margin-top: 0;
}

.story-sign {
  margin: 34px 0 !important;
}

.story-sign strong,
.story-sign span {
  display: block;
}

.story-sign strong {
  font-size: 13px;
}

.story-sign span {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 900;
}

.story-button--light {
  background: #fff;
  color: var(--story-orange) !important;
  box-shadow: none;
}

@media (max-width: 900px) {
  .story-hero {
    padding-top: 54px;
  }

  .story-hero__grid,
  .story-heading-grid,
  .story-failure,
  .story-price,
  .story-closing__inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .story-hero__photo {
    width: min(560px, 100%);
    margin: 10px auto 0;
  }

  .story-hero__photo img {
    height: 470px;
  }

  .story-index ol {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-timeline {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 42px;
  }

  .story-principles,
  .story-offline ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-case {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 640px) {
  .story-page p,
  .story-page li {
    font-size: 15px;
    line-height: 1.9;
  }

  .story-shell,
  .story-narrow {
    width: calc(100% - 36px);
  }

  .story-hero h1 {
    font-size: clamp(36px, 10vw, 50px);
  }

  .story-hero__lead {
    font-size: 20px !important;
  }

  .story-hero__photo img {
    height: 390px;
    border-radius: 110px 110px 18px 18px;
  }

  .story-hero__photo figcaption {
    right: 10px;
    bottom: 12px;
    padding: 10px 13px;
  }

  .story-hero__photo figcaption strong {
    font-size: 17px;
  }

  .story-hero__phrase {
    width: calc(100% - 36px);
    padding: 24px 18px;
    font-size: 24px !important;
  }

  .story-sp {
    display: block;
  }

  .story-index {
    padding-top: 82px;
  }

  .story-index ol {
    grid-template-columns: 1fr;
  }

  .story-section {
    padding: 82px 0;
  }

  .story-section h2,
  .story-heading-grid h2 {
    margin-bottom: 30px;
    font-size: 32px;
  }

  .story-beginning-title {
    font-size: 27px !important;
  }

  .story-callout {
    padding: 28px 24px;
  }

  .story-section blockquote {
    margin: 42px -18px;
    padding: 34px 26px;
  }

  .story-section blockquote p {
    font-size: 24px;
  }

  .story-timeline {
    grid-template-columns: 1fr;
  }

  .story-principles,
  .story-offline ul,
  .story-columns {
    grid-template-columns: 1fr;
  }

  .story-failure,
  .story-offline,
  .story-case,
  .story-price {
    padding: 28px 22px;
  }

  .story-price h3 {
    font-size: 23px;
  }

  .story-tech-title {
    font-size: 28px !important;
  }

  .story-offline__line {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-offline__line i {
    width: 100%;
    flex: none;
  }

  .story-offline__line strong {
    font-size: 23px;
  }

  .story-case {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-case__num {
    font-size: 48px !important;
  }

  .story-faq summary {
    padding: 24px 48px 24px 36px;
    font-size: 16px;
  }

  .story-faq summary::before {
    left: 0;
  }

  .story-faq summary::after {
    right: 8px;
  }

  .story-faq details div {
    padding: 0 0 24px 36px;
  }

  .story-closing {
    padding: 78px 0;
  }

  .story-closing h2 {
    font-size: 28px;
  }

  .story-nowrap-mobile {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .story-button {
    transition: none;
  }
}
