/* The original graphic timeline remains available on wider screens. */
.about-mobile-timeline { display: none; }

@media (max-width: 1100px) {
  .hero,
  .about-photo-stage { will-change: auto; }

  #onas .about-story-card {
    padding-top: 36px;
    padding-bottom: 30px;
  }

  #onas .about-intro {
    width: min(640px, calc(100% - 40px));
    font-size: clamp(.94rem, 2.8vw, 1rem);
    line-height: 1.75;
    text-align: center;
  }

  #onas .about-timeline-area {
    width: min(700px, calc(100% - 28px));
    padding: 24px 0 0;
    text-align: left;
  }

  #onas .about-timeline-area.has-mobile-story > .about-timeline-scroll {
    display: none;
  }

  #onas .about-mobile-timeline { display: block; }

  #onas .about-mobile-timeline h3 {
    margin: 0 0 16px;
    color: #3e352f;
    font: 400 clamp(1.7rem, 5vw, 2.2rem)/1.2 var(--font-display);
    text-align: center;
  }

  #onas .about-mobile-year {
    margin: 0 0 10px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(92, 74, 64, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 5px 18px rgba(57, 53, 61, .06);
  }

  #onas .about-mobile-year > summary {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    min-height: 62px;
    padding: 10px 15px;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  #onas .about-mobile-year > summary::-webkit-details-marker { display: none; }

  #onas .about-mobile-year > summary::after {
    content: "+";
    color: #70594b;
    font: 300 1.6rem/1 var(--font-body);
    text-align: center;
  }

  #onas .about-mobile-year[open] > summary::after { content: "−"; }

  #onas .about-mobile-year > summary:focus-visible {
    outline: 2px solid #927c66;
    outline-offset: -4px;
  }

  #onas .about-mobile-year-label {
    color: #5b4338;
    font: 600 1rem/1.25 var(--font-body);
  }

  #onas .about-mobile-year-teaser {
    color: #4a4441;
    font: 400 .87rem/1.4 var(--font-body);
    overflow-wrap: anywhere;
  }

  #onas .about-mobile-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 14px;
    padding: 0 15px 16px;
    border-top: 1px solid rgba(92, 74, 64, .1);
  }

  #onas .about-mobile-event {
    min-width: 0;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 12px;
    background: #faf8f5;
  }

  #onas .about-mobile-event img {
    display: block;
    width: 100%;
    height: clamp(180px, 55vw, 290px);
    object-fit: cover;
    object-position: center 35%;
  }

  #onas .about-mobile-event p {
    margin: 0;
    padding: 12px 14px;
    color: #38323a;
    font: 400 1.08rem/1.35 var(--font-display);
  }
}

@media (max-width: 370px) {
  #onas .about-mobile-year > summary {
    grid-template-columns: 73px minmax(0, 1fr) 18px;
    padding-inline: 11px;
  }

  #onas .about-mobile-year-teaser { font-size: .8rem; }
}

/* On phones, the desktop story becomes one continuous vertical axis. */
@media (max-width: 760px) {
  #onas .about-mobile-timeline h3 {
    margin-bottom: 26px;
  }

  #onas .about-mobile-list {
    --year-column: 72px;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #onas .about-mobile-list::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 10px;
    left: calc(var(--year-column) + 13px);
    width: 2px;
    border-radius: 2px;
    background: #a49791;
  }

  #onas .about-mobile-entry {
    position: relative;
    display: grid;
    grid-template-columns: var(--year-column) 28px minmax(0, 1fr);
    align-items: start;
    padding: 0 0 25px;
  }

  #onas .about-mobile-entry:last-child {
    padding-bottom: 0;
  }

  #onas .about-mobile-entry > .about-mobile-year-label {
    padding: 0 7px 0 0;
    color: #514941;
    font: 600 .9rem/1.25 var(--font-body);
    text-align: right;
  }

  #onas .about-mobile-entry.is-relationship > .about-mobile-year-label {
    font-size: .76rem;
  }

  #onas .about-mobile-dot {
    position: relative;
    z-index: 1;
    display: block;
    width: 18px;
    height: 18px;
    margin: -1px auto 0;
    border: 5px solid #eee8df;
    border-radius: 50%;
    background: #a49791;
    box-shadow: 0 0 0 1px rgba(164, 151, 145, .38);
  }

  #onas .about-mobile-entry.is-relationship .about-mobile-dot {
    background: #bc8c89;
  }

  #onas .about-mobile-entry > .about-mobile-events {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    min-width: 0;
    padding: 0 0 0 7px;
    border: 0;
    text-align: left;
  }

  #onas .about-mobile-events > .about-mobile-event {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 18px;
    margin: 0;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }

  #onas .about-mobile-event img {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center 35%;
  }

  #onas .about-mobile-event p {
    margin: 0;
    padding: 0;
    color: #3e352f;
    font: 400 .98rem/1.3 var(--font-display);
  }

  #onas .about-mobile-event:not(:has(img)) p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 370px) {
  #onas .about-mobile-list { --year-column: 65px; }
  #onas .about-mobile-event img { width: 52px; height: 52px; }
  #onas .about-mobile-event p { font-size: .91rem; }
}

/* A tap on a year recreates the desktop timeline's raised event bubble. */
@media (max-width: 760px) {
  #onas .about-mobile-hint {
    margin: 0 0 22px;
    color: #806f64;
    font: 400 .78rem/1.4 var(--font-body);
    letter-spacing: .04em;
    text-align: center;
  }

  #onas .about-mobile-entry {
    grid-template-columns: calc(var(--year-column) + 28px) minmax(0, 1fr);
    min-height: 42px;
    padding-bottom: 14px;
    transition: opacity .24s ease;
  }

  #onas .about-mobile-entry.is-active {
    z-index: 2;
    padding-bottom: 24px;
  }

  #onas .about-mobile-list:has(.is-active) .about-mobile-entry:not(.is-active) {
    opacity: .66;
  }

  #onas .about-mobile-trigger {
    display: grid;
    grid-template-columns: var(--year-column) 28px;
    align-items: start;
    width: 100%;
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  #onas .about-mobile-trigger .about-mobile-year-label {
    padding: 0 7px 0 0;
    color: #514941;
    font: 600 .9rem/1.25 var(--font-body);
    text-align: right;
  }

  #onas .about-mobile-entry.is-relationship .about-mobile-year-label {
    font-size: .76rem;
  }

  #onas .about-mobile-trigger .about-mobile-dot {
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
    animation: about-mobile-dot-pulse 3.2s ease-out infinite;
  }

  #onas .about-mobile-entry:nth-child(3n) .about-mobile-dot { animation-delay: .7s; }
  #onas .about-mobile-entry:nth-child(3n + 2) .about-mobile-dot { animation-delay: 1.4s; }

  #onas .about-mobile-trigger:is(:hover, :focus-visible) .about-mobile-dot,
  #onas .about-mobile-entry.is-active .about-mobile-dot {
    background: #49382e;
    box-shadow: 0 0 0 6px rgba(73, 56, 46, .2), 0 8px 20px rgba(56, 42, 35, .12);
    transform: scale(1.3);
    animation: none;
  }

  #onas .about-mobile-trigger:focus-visible {
    outline: 2px solid #49382e;
    outline-offset: 2px;
    border-radius: 4px;
  }

  #onas .about-mobile-entry > .about-mobile-events {
    grid-column: 2;
    gap: 10px;
    max-height: 0;
    margin: 0 0 0 4px;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    border: 0 solid transparent;
    border-radius: 17px;
    background: rgba(255, 255, 255, .97);
    box-shadow: none;
    opacity: 0;
    transform: translateY(8px) scale(.97);
    transform-origin: top left;
    transition: max-height .32s ease, padding .32s ease, opacity .24s ease, transform .24s ease, visibility .24s ease;
  }

  #onas .about-mobile-entry.is-active > .about-mobile-events {
    max-height: 620px;
    padding: 12px;
    visibility: visible;
    border: 1px solid rgba(57, 53, 61, .09);
    box-shadow: 0 14px 32px rgba(57, 53, 61, .13);
    opacity: 1;
    transform: none;
  }

  #onas .about-mobile-entry.is-active::after {
    content: "";
    position: absolute;
    top: 10px;
    left: calc(var(--year-column) + 24px);
    width: 11px;
    height: 11px;
    background: #fff;
    transform: rotate(45deg);
  }

  #onas .about-mobile-entry.is-active .about-mobile-event img {
    width: 68px;
    height: 68px;
  }

  #onas .about-mobile-entry.is-active .about-mobile-event p {
    font-size: 1rem;
  }
}

/* The phone story uses the desktop timeline's centered axis and milestone palette. */
@media (max-width: 760px) {
  #onas .about-mobile-list::before {
    left: 50%;
    transform: translateX(-50%);
  }

  #onas .about-mobile-entry {
    grid-template-columns: minmax(0, 1fr);
    min-height: var(--mobile-year-gap, 42px);
    padding-bottom: 0;
  }

  #onas .about-mobile-entry.is-active {
    padding-bottom: 0;
  }

  #onas .about-mobile-entry.is-present::before,
  #onas .about-mobile-entry.is-relationship-start::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 8px;
    bottom: -8px;
    left: calc(50% - 1px);
    width: 2px;
    background: #49382e;
    pointer-events: none;
  }

  #onas .about-mobile-entry.is-relationship-start::before {
    top: 8px;
    bottom: -8px;
  }

  #onas .about-mobile-trigger {
    position: relative;
    display: block;
    grid-column: 1;
    min-height: 42px;
  }

  #onas .about-mobile-trigger .about-mobile-year-label {
    position: absolute;
    top: -1px;
    right: calc(50% + 18px);
    width: calc(50% - 22px);
    padding: 0;
  }

  #onas .about-mobile-trigger .about-mobile-dot {
    position: absolute;
    top: -1px;
    left: calc(50% - 9px);
    margin: 0;
  }

  #onas .about-mobile-entry.is-relationship .about-mobile-dot,
  #onas .about-mobile-entry.is-present .about-mobile-dot {
    background: #49382e;
    box-shadow: 0 0 0 1px rgba(73, 56, 46, .62);
    animation-name: about-mobile-brown-pulse;
  }

  #onas .about-mobile-entry.is-wedding .about-mobile-dot {
    background: #df4b43;
    box-shadow: 0 0 0 1px rgba(223, 75, 67, .3);
    animation: wedding-year-pulse 1.8s ease-out infinite;
  }

  #onas .about-mobile-entry > .about-mobile-events {
    position: absolute;
    top: 42px;
    left: 50%;
    grid-column: 1;
    width: min(320px, calc(100% - 8px));
    margin: 0;
    transform: translate(-50%, 8px) scale(.97);
    transform-origin: top center;
  }

  #onas .about-mobile-entry.is-active > .about-mobile-events {
    z-index: 2;
    background: #fff;
    transform: translateX(-50%);
  }

  #onas .about-mobile-entry:nth-last-child(-n+3) > .about-mobile-events {
    top: auto;
    bottom: 42px;
    transform-origin: bottom center;
  }

  #onas .about-mobile-entry:nth-last-child(-n+3).is-active::after {
    top: -9px;
  }

  #onas .about-mobile-entry.is-active::after {
    z-index: 3;
    top: 39px;
    left: calc(50% - 5.5px);
  }

  #onas .about-mobile-trigger:is(:hover, :focus-visible) .about-mobile-dot,
  #onas .about-mobile-entry.is-active .about-mobile-dot {
    background: #8f817b;
    box-shadow: 0 0 0 7px rgba(164, 151, 145, .24), 0 10px 25px rgba(80, 67, 59, .15);
  }

  #onas .about-mobile-entry.is-relationship:is(.is-active, :has(.about-mobile-trigger:hover)) .about-mobile-dot,
  #onas .about-mobile-entry.is-present:is(.is-active, :has(.about-mobile-trigger:hover)) .about-mobile-dot {
    background: #382a23;
    box-shadow: 0 0 0 7px rgba(73, 56, 46, .18), 0 10px 25px rgba(56, 42, 35, .16);
  }

  #onas .about-mobile-entry.is-wedding:is(.is-active, :has(.about-mobile-trigger:hover)) .about-mobile-dot {
    background: #d9433c;
    box-shadow: 0 0 0 8px rgba(223, 75, 67, .2), 0 10px 26px rgba(147, 48, 42, .22);
  }
}

@keyframes about-mobile-dot-pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 1px rgba(164, 151, 145, .38); }
  30% { box-shadow: 0 0 0 5px rgba(164, 151, 145, .12); }
}

@keyframes about-mobile-brown-pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 1px rgba(73, 56, 46, .62); }
  30% { box-shadow: 0 0 0 5px rgba(73, 56, 46, .12); }
}

@media (prefers-reduced-motion: reduce) {
  #onas .about-mobile-dot { animation: none !important; }
  #onas .about-mobile-entry,
  #onas .about-mobile-entry > .about-mobile-events { transition: none; }
}

/* On phones, compress the desktop year positions into one horizontal, touchable axis. */
@media (max-width: 760px) {
  #onas .about-mobile-timeline {
    position: relative;
  }

  #onas .about-mobile-list {
    height: 91px;
  }

  #onas .about-mobile-list::before {
    top: 18px;
    right: 10px;
    bottom: auto;
    left: 10px;
    width: auto;
    height: 2px;
    transform: none;
  }

  #onas .about-mobile-entry,
  #onas .about-mobile-entry.is-active {
    position: absolute;
    top: 0;
    display: block;
    width: 0;
    height: 91px;
    min-height: 0;
    padding: 0;
  }

  #onas .about-mobile-entry.is-present::before,
  #onas .about-mobile-entry.is-relationship-start::before {
    top: 18px;
    bottom: auto;
    left: 0;
    width: var(--mobile-next-gap);
    height: 2px;
  }

  #onas .about-mobile-trigger {
    position: absolute;
    top: 0;
    left: -8px;
    display: block;
    width: 16px;
    min-height: 80px;
  }

  #onas .about-mobile-trigger .about-mobile-dot {
    top: 13px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-width: 2px;
  }

  #onas .about-mobile-trigger .about-mobile-year-label {
    top: 77px;
    right: auto;
    left: 1px;
    width: 40px;
    color: #514941;
    font-size: .72rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .04em;
    text-align: left;
    white-space: nowrap;
    transform: rotate(-90deg);
    transform-origin: top left;
  }

  #onas .about-mobile-entry.is-relationship .about-mobile-year-label {
    font-size: .72rem;
  }

  #onas .about-mobile-relationship-region {
    position: absolute;
    z-index: 3;
    top: 6px;
    height: 25px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  #onas .about-mobile-relationship-region:focus-visible {
    outline: 2px solid #49382e;
    outline-offset: 4px;
  }

  #onas .about-mobile-timeline:has(.about-mobile-relationship-region:is(:hover, :focus-visible)) .about-mobile-entry.is-relationship .about-mobile-dot,
  #onas .about-mobile-timeline:has(.about-mobile-entry.is-relationship .about-mobile-trigger:is(:hover, :focus-visible)) .about-mobile-entry.is-relationship .about-mobile-dot {
    background: #382a23;
    box-shadow: 0 0 0 5px rgba(73, 56, 46, .18);
    transform: scale(1.2);
    animation: none;
  }

  #onas .about-mobile-entry.is-relationship-end > .about-mobile-events {
    display: none;
  }

  #onas .about-mobile-entry > .about-mobile-events,
  #onas .about-mobile-entry:nth-last-child(-n+3) > .about-mobile-events {
    position: fixed;
    top: auto;
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    width: min(320px, calc(100vw - 32px));
    max-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translate(-50%, 8px) scale(.97);
    transform-origin: bottom center;
  }

  #onas .about-mobile-entry.is-active > .about-mobile-events,
  #onas .about-mobile-entry:nth-last-child(-n+3).is-active > .about-mobile-events {
    max-height: min(60vh, 480px);
    transform: translateX(-50%);
  }

  #onas .about-mobile-entry.is-active::after {
    display: none;
  }
}
