.aay-about-story {
  --story-ink: #1f2830;
  --story-paper: #f0f0ee;
  --story-accent: var(--yellow, #ffde60);
  --story-gutter: clamp(20px, 5.55vw, 90px);
  --story-gap: clamp(16px, 2.3vw, 40px);
  --story-section-space: clamp(64px, 9vw, 144px);
  color: var(--story-ink);
  background: #fff;
}

.aay-about-story h1,
.aay-about-story h2,
.aay-about-story p,
.aay-about-story figure {
  margin: 0;
}

.aay-about-story p {
  max-width: 48ch;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}

.aay-about-story h2 {
  font-size: clamp(35px, 4.8vw, 69px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.03;
  text-wrap: balance;
}

.aay-story-wrap {
  width: min(100%, 1680px);
  margin-inline: auto;
  padding-inline: var(--story-gutter);
}

.aay-story-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--story-gap);
  row-gap: clamp(24px, 4vw, 60px);
  align-items: start;
  padding-top: clamp(28px, 4vw, 64px);
  padding-bottom: var(--story-section-space);
}

.aay-story-title {
  grid-area: 1 / 1 / auto / 10;
  align-self: end;
  font-size: clamp(64px, 8.3vw, 126px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .94;
}

.aay-story-title > span {
  display: block;
  width: fit-content;
  padding-bottom: .09em;
}

.aay-story-title > span + span {
  margin-left: 36%;
}

.aay-story-title > span > span {
  display: block;
}

.aay-story-photo-city {
  grid-area: 1 / 10 / auto / 13;
  --story-photo-ratio: 3 / 2;
}

.aay-story-photo-hero {
  grid-area: 2 / 1 / auto / 8;
  --story-photo-ratio: 16 / 10;
  --story-photo-position: 50% 55%;
}

.aay-story-welcome {
  grid-area: 2 / 9 / auto / 13;
  padding-top: clamp(8px, 4vw, 64px);
}

.aay-story-welcome p {
  margin-bottom: 24px;
}

.aay-story-photo-frame {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--story-photo-ratio, 16 / 10);
  background: var(--story-paper);
}

.aay-story-photo-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--story-photo-position, center);
}


.aay-story-option-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.aay-story-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 19px;
  background: var(--story-accent);
  color: var(--story-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.aay-story-button:hover,
.aay-story-button:focus {
  color: var(--story-ink);
  text-decoration: underline;
}

.aay-story-button span {
  transition: transform .2s ease;
}

.aay-story-button:hover span {
  transform: translateX(3px);
}

.aay-about-story :is(a, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.aay-story-panorama {
  padding-top: clamp(46px, 6.5vw, 96px);
  background: var(--story-paper);
}

.aay-story-panorama-copy {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: var(--story-gap);
  margin-bottom: clamp(28px, 5vw, 68px);
}

.aay-story-photo-sevan {
  --story-photo-ratio: 21 / 8;
  --story-photo-position: center 57%;
}


.aay-story-scenes {
  display: grid;
  gap: clamp(64px, 10vw, 160px);
  padding-block: var(--story-section-space);
}

.aay-story-scene {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--story-gap);
  align-items: center;
}

.aay-story-scene h2,
.aay-story-choices h2,
.aay-story-finale h2 {
  margin-bottom: 16px;
}

.aay-story-photo-mountain {
  grid-row: 1;
  grid-column: 1 / 8;
  --story-photo-ratio: 4 / 3;
}

.aay-story-scene-mountains .aay-story-scene-copy {
  grid-row: 1;
  grid-column: 9 / 13;
}

.aay-story-scene-table .aay-story-scene-copy {
  grid-column: 2 / 7;
}

.aay-story-photo-lavash {
  grid-column: 8 / 13;
  --story-photo-ratio: 5 / 4;
  --story-photo-position: 37% center;
}

.aay-story-editor-content {
  margin-bottom: var(--story-section-space);
}

.aay-story-choices {
  background: var(--story-paper);
}

.aay-story-choices-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--story-gap);
  padding-block: clamp(48px, 7vw, 105px);
}

.aay-story-options {
  display: grid;
  gap: 10px;
}

.aay-story-option {
  background: #fff;
}

.aay-story-option summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 14px clamp(14px, 2vw, 24px);
  cursor: pointer;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
}

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

.aay-story-option summary span {
  position: relative;
  flex: 0 0 16px;
  height: 16px;
}

.aay-story-option summary span::before,
.aay-story-option summary span::after {
  position: absolute;
  inset: 0;
  width: 14px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: '';
}

.aay-story-option summary span::after {
  transform: rotate(90deg);
}

.aay-story-option[open] summary span::after {
  display: none;
}

.aay-story-option:not([open]) .aay-story-option-copy {
  display: none;
}

.aay-story-option-copy {
  padding: 0 clamp(14px, 2vw, 24px) 20px;
}

.aay-story-option-copy p {
  margin-bottom: 10px;
}

.aay-story-option-copy a {
  font-size: 16px;
  font-weight: 600;
}

.aay-story-finale {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--story-ink);
  color: #fff;
}

.aay-story-photo-finale {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  --story-photo-position: center 48%;
}

.aay-story-photo-finale .aay-story-photo-frame {
  flex: 1;
  min-height: 300px;
  aspect-ratio: auto;
  background: var(--story-ink);
}


.aay-story-finale-copy {
  grid-area: 1 / 2;
  align-self: center;
  padding: clamp(36px, 6vw, 104px) var(--story-gutter);
}

.aay-story-finale-copy p {
  margin-bottom: 24px;
}

@media (max-width: 850px) {
  .aay-story-hero {
    row-gap: 24px;
  }

  .aay-story-title {
    grid-column: 1 / 10;
    font-size: clamp(53px, 10.2vw, 84px);
  }

  .aay-story-photo-city {
    grid-column: 10 / 13;
  }

  .aay-story-photo-hero {
    grid-column: 1 / 7;
  }

  .aay-story-welcome {
    grid-column: 7 / 13;
  }

  .aay-story-scene-mountains .aay-story-scene-copy {
    grid-column: 8 / 13;
  }

  .aay-story-scene-table .aay-story-scene-copy {
    grid-column: 1 / 7;
  }

  .aay-story-photo-lavash {
    grid-column: 7 / 13;
  }
}

@media (max-width: 620px) {
  .aay-story-hero {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px 10px;
  }

  .aay-story-photo-city {
    grid-area: 4 / 4 / auto / 7;
  }

  .aay-story-title {
    grid-area: 1 / 1 / auto / 7;
    font-size: clamp(54px, 13vw, 75px);
  }

  .aay-story-title > span + span {
    margin-left: 18%;
  }

  .aay-story-welcome {
    grid-area: 2 / 1 / auto / 7;
    padding-top: 0;
  }

  .aay-story-photo-hero {
    grid-area: 3 / 1 / auto / 7;
    --story-photo-ratio: 5 / 4;
  }

  .aay-story-panorama-copy,
  .aay-story-scene,
  .aay-story-choices-inner,
  .aay-story-finale {
    grid-template-columns: minmax(0, 1fr);
  }

  .aay-story-photo-sevan {
    --story-photo-ratio: 5 / 4;
  }

  .aay-story-scene .aay-story-scene-copy,
  .aay-story-photo-mountain,
  .aay-story-photo-lavash {
    grid-column: 1;
  }

  .aay-story-scene-mountains .aay-story-scene-copy {
    grid-row: 1;
  }

  .aay-story-photo-mountain {
    grid-row: 2;
    width: 88%;
  }

  .aay-story-photo-lavash {
    width: 84%;
    justify-self: end;
  }

  .aay-story-finale-copy {
    grid-area: 1 / 1;
  }

  .aay-story-photo-finale {
    grid-area: 2 / 1;
  }

  .aay-story-photo-finale .aay-story-photo-frame {
    flex: none;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .aay-story-title > span {
    overflow: hidden;
  }

  .aay-story-title > span > span {
    animation: aay-story-line .7s cubic-bezier(.2,.6,.24,1) both;
  }

  .aay-story-title > span + span > span {
    animation-delay: .10s;
  }

  .aay-story-welcome p,
  .aay-story-welcome a,
  .aay-story-photo-city .aay-story-photo-frame {
    animation: aay-story-arrive .48s ease-out .24s both;
  }

  .aay-story-photo-hero img {
    animation: aay-story-photo-settle 2s ease-out both;
  }

  @supports (animation-timeline: view()) {
    .aay-story-panorama-copy > *,
    .aay-story-scene-copy > *,
    .aay-story-choices-intro > *,
    .aay-story-options > *,
    .aay-story-finale-copy > * {
      animation: aay-story-arrive linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 28%;
    }
  }
}

@keyframes aay-story-line {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes aay-story-arrive {
  from { opacity: .74; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aay-story-photo-settle {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

.aay-header.header {
  border: 0;
}

.aay-header.header .aay-navigation-wrap {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.aay-header a,
.aay-footer a {
  text-shadow: none;
}

.aay-footer .aay-footer-link,
.aay-footer .aay-footer-link:hover {
  color: #1f2830;
  text-shadow: none;
}

.aay-footer .aay-footer-link:hover {
  text-decoration: underline;
}

.aay-footer .aay-footer-line {
  display: none;
}

.aay-footer .aay-copyright-text {
  font-size: 13px;
}

@media (max-width: 479px) {
  .aay-footer .aay-footer-bottom-wrapper {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .aay-footer .aay-copyright-text {
    text-align: left;
  }
}
