@font-face { font-family: Wrap Inter; src: url("/assets/inter-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
  @font-face { font-family: Wrap Inter; src: url("/assets/inter-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
  @font-face { font-family: Wrap Cardinal; src: url("/assets/cardinal-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
  #theosu-wrap-story {
    display: grid;
    grid-template-rows: 1fr auto;
    --story-black: #181818;
    --story-green: #75f952;
    --story-text: #fff;
    --story-muted: #c6c6c6;
    --story-rule: rgb(255 255 255 / 23%);
    --story-x: 0px;
    --story-y: 0px;
    font: 400 15px/1.4 'Wrap Inter', Inter, system-ui, sans-serif;
  }
  #theosu-wrap-story * { box-sizing: border-box; }
  #theosu-wrap-story .story-panel[hidden] { display: none; }
  #theosu-wrap-story :is(h2, p, ol) { margin: 0; }
  #theosu-wrap-story button { font-family: inherit; }
  #theosu-wrap-story :is(button, a):focus-visible { outline: 2px solid var(--story-green); outline-offset: 4px; }
  #theosu-wrap-story .story-stage {
    display: grid;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color-scheme: dark;
    color: var(--story-text);
    background: var(--story-black);
    touch-action: pan-y;
  }
  #theosu-wrap-story .story-header {
    position: absolute;
    z-index: 3;
    inset: max(20px, calc(env(safe-area-inset-top) + 8px)) 22px auto;
  }
  #theosu-wrap-story .story-header img { display: block; height: auto; }
  #theosu-wrap-story .story-progress {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
    margin-top: 20px;
  }
  #theosu-wrap-story .story-progress span {
    display: block;
    height: 3px;
    background: rgb(255 255 255 / 36%);
  }
  #theosu-wrap-story .story-progress [data-shown="true"] { background: var(--story-green); }
  #theosu-wrap-story .story-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    isolation: isolate;
    padding: calc(96px + env(safe-area-inset-top)) 23px 94px;
    text-align: center;
  }
  #theosu-wrap-story .story-panel::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background: url("/assets/grain.webp") 0 0 / 157px repeat;
    opacity: 0.15;
    mix-blend-mode: soft-light;
  }
  #theosu-wrap-story .story-atmosphere {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  #theosu-wrap-story .story-orbit {
    position: absolute;
    width: 140%;
    aspect-ratio: 2.45;
    opacity: 0.86;
    border-radius: 50%;
    filter: blur(5px);
    background:
      radial-gradient(ellipse at 49% 47%,
        transparent 24%, rgb(48 90 38 / 45%) 33%, #75f952 39%,
        #d5ffc3 42%, #50db3b 46%, #1d6423 53%, transparent 71%);
    transform: translate(var(--story-x), var(--story-y)) rotate(var(--orbit-angle, 0deg)) scale(1.04);
  }
  #theosu-wrap-story .story-orbit-top { top: -11%; left: -39%; --orbit-angle: -24deg; }
  #theosu-wrap-story .story-orbit-bottom { bottom: -13%; right: -41%; --orbit-angle: -24deg; }
  #theosu-wrap-story .story-panel:not([hidden]) .story-orbit { animation: wrap-orbit-settle 7s ease-in-out both; }
  #theosu-wrap-story .story-panel:not([hidden]) .story-orbit-bottom { animation-duration: 8.5s; animation-direction: reverse; }
  @keyframes wrap-orbit-settle {
    from { transform: translate(calc(var(--story-x) - 47px), calc(var(--story-y) + 28px)) rotate(calc(var(--orbit-angle) - 23deg)) scale(0.89); }
    53% { transform: translate(calc(var(--story-x) + 45px), calc(var(--story-y) - 35px)) rotate(calc(var(--orbit-angle) + 18deg)) scale(1.13); }
    to { transform: translate(var(--story-x), var(--story-y)) rotate(var(--orbit-angle)) scale(1.04); }
  }
  #theosu-wrap-story .story-opening .story-orbit-top { top: -6%; left: -52%; }
  #theosu-wrap-story .story-opening .story-orbit-bottom { bottom: -8%; right: -52%; }
  #theosu-wrap-story .story-stage::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgb(24 24 24 / 76%), transparent 15%, transparent 87%, rgb(24 24 24 / 70%));
  }
  #theosu-wrap-story .story-copy { position: relative; }
  #theosu-wrap-story .story-label {
    color: var(--story-green);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }
  #theosu-wrap-story .story-title {
    font: 400 clamp(40px, 12cqi, 56px)/0.98 'Wrap Cardinal', Georgia, serif;
    margin: 9px 0 15px;
  }
  #theosu-wrap-story .story-opening-title {
    font-size: clamp(58px, 17.5cqi, 82px);
    margin-block: 13px 22px;
  }
  #theosu-wrap-story .story-setup .story-title { max-width: 350px; margin-inline: auto; }
  #theosu-wrap-story .story-line { max-width: 290px; margin-inline: auto; color: var(--story-text); }
  #theosu-wrap-story .story-secondary { color: var(--story-muted); margin-top: 15px; font-size: 12px; }
  #theosu-wrap-story .story-watch { justify-content: flex-end; padding-bottom: 110px; }
  #theosu-wrap-story .story-watch .story-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #181818 14%, #181818 35%, transparent 60%);
  }
  #theosu-wrap-story .story-portrait {
    position: absolute;
    top: 11%;
    left: -16%;
    width: 141%;
    transform: translate(calc(var(--story-x) * -1.55), calc(var(--story-y) * -1.55));
    transition: transform 240ms ease-out;
    mask-image: linear-gradient(#000 0% 68%, transparent 100%);
  }
  #theosu-wrap-story .story-portrait img {
    display: block;
    width: 100%;
    height: auto;
    clip-path: polygon(
      0 91%, 11% 84%, 19% 75%, 22% 70%, 26% 60%, 29% 55%, 33% 52%,
      33% 48%, 31% 44%, 30% 38%, 30% 31%, 31% 24%, 33% 17%, 35% 12%,
      38% 7%, 41% 4%, 44% 4%, 47% 7%, 50% 11%, 52% 18%, 54% 28%, 57% 34%,
      60% 40%, 64% 43%, 67% 48%, 68% 45%, 70% 42%, 74% 42%, 77% 45%,
      80% 51%, 83% 58%, 86% 65%, 92% 66%, 97% 70%, 100% 75%, 100% 100%, 0 100%
    );
  }
  #theosu-wrap-story .story-panel:not([hidden]) .story-portrait-drift { animation: wrap-portrait-settle 8s ease-in-out both; }
  @keyframes wrap-portrait-settle {
    from { transform: translate(-24px, 25px) scale(0.97); }
    58% { transform: translate(18px, -14px) scale(1.10); }
    to { transform: translate(5px, -5px) scale(1.06); }
  }
  #theosu-wrap-story .story-time {
    color: var(--story-green);
    font-size: clamp(61px, 18.2cqi, 90px);
    font-weight: 600;
    letter-spacing: -0.075em;
    line-height: 0.97;
    margin: 11px 0 20px;
    white-space: nowrap;
  }
  #theosu-wrap-story .story-time span { font-size: 0.43em; letter-spacing: -0.04em; }
  #theosu-wrap-story .story-collage {
    position: relative;
    isolation: isolate;
    width: min(100%, 310px);
    margin: 25px auto 28px;
  }
  #theosu-wrap-story .story-chip { display: block; width: 100%; height: auto; border-radius: 4px; }
  #theosu-wrap-story .story-chip-front { position: relative; width: 90%; transform: rotate(-4deg); }
  #theosu-wrap-story .story-chip-back {
    position: absolute;
    width: 66%;
    right: -1%;
    bottom: 0;
    transform: translate(calc(var(--story-x) * -0.8), var(--story-y)) rotate(11deg);
  }
  #theosu-wrap-story .story-share { margin: 8px 0 12px; }
  #theosu-wrap-story .story-share strong {
    color: var(--story-green);
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.075em;
    line-height: 1;
    margin-right: 5px;
  }
  #theosu-wrap-story .story-engraving {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 67% center;
    opacity: 0.20;
  }
  #theosu-wrap-story .story-lead-cover { display: block; width: min(100%, 280px); margin: 17px auto; border-radius: 4px; }
  #theosu-wrap-story .story-lesson .story-title { max-width: 310px; margin-inline: auto; }
  #theosu-wrap-story .story-history .story-title { margin-bottom: 26px; }
  #theosu-wrap-story .story-ranking { list-style: none; padding: 0; text-align: left; }
  #theosu-wrap-story .story-ranking li {
    display: grid;
    grid-template-columns: 19px clamp(45px, 15cqi, 59px) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(5px, 2cqi, 9px);
    padding: 13px 0;
    border-top: 1px solid var(--story-rule);
  }
  #theosu-wrap-story .story-ranking li:last-child { border-bottom: 1px solid var(--story-rule); }
  #theosu-wrap-story .story-ranking img { display: block; width: 100%; height: auto; border-radius: 4px; }
  #theosu-wrap-story .story-rank { color: var(--story-green); font-size: 11px; font-variant-numeric: tabular-nums; }
  #theosu-wrap-story .story-video { font-size: 13px; font-weight: 600; }
  #theosu-wrap-story .story-video small { display: block; margin-top: 2px; color: var(--story-muted); font-size: 11px; font-weight: 400; }
  #theosu-wrap-story .story-ranking time { font-size: 11px; white-space: nowrap; }
  #theosu-wrap-story .story-teachers { list-style: none; padding: 0; margin: 28px auto 0; text-align: left; }
  #theosu-wrap-story .story-teachers li {
    display: grid;
    grid-template-columns: clamp(52px, 18cqi, 74px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-block-start: 1px solid var(--story-rule);
  }
  #theosu-wrap-story .story-teachers li:last-child { border-block-end: 1px solid var(--story-rule); }
  #theosu-wrap-story .story-teachers img { display: block; width: 100%; height: auto; border-radius: 4px; }
  #theosu-wrap-story .story-teacher { font-size: 13px; font-weight: 600; }
  #theosu-wrap-story .story-teacher small { display: block; color: var(--story-muted); font-size: 11px; font-weight: 400; }
  #theosu-wrap-story .story-teachers time { color: var(--story-green); font-size: 13px; font-weight: 600; white-space: nowrap; }
  #theosu-wrap-story .story-closing { padding-block: calc(86px + env(safe-area-inset-top)) 74px; }
  #theosu-wrap-story .story-closing .story-title { margin-top: 0; }
  #theosu-wrap-story .story-releases { margin: 24px auto 16px; max-width: 350px; text-align: left; }
  #theosu-wrap-story .story-releases h3 { margin: 0 0 9px; }
  #theosu-wrap-story .story-releases ul { list-style: none; margin: 0; padding: 0; }
  #theosu-wrap-story .story-releases li { border-block-start: 1px solid var(--story-rule); }
  #theosu-wrap-story .story-releases li:last-child { border-block-end: 1px solid var(--story-rule); }
  #theosu-wrap-story .story-releases a {
    display: grid;
    grid-template-columns: clamp(48px, 17cqi, 70px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 51px;
    padding: 7px 0;
    color: var(--story-text);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }
  #theosu-wrap-story .story-releases a:hover { color: var(--story-green); }
  #theosu-wrap-story .story-releases img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
  #theosu-wrap-story .story-releases small { display: block; color: var(--story-muted); font-size: 11px; font-weight: 400; }
  #theosu-wrap-story .story-releases [aria-hidden], #theosu-wrap-story .story-return { color: var(--story-green); }
  #theosu-wrap-story .story-return {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 4px;
    font-size: 14px;
    font-weight: 600;
    text-underline-offset: 4px;
  }
  #theosu-wrap-story .story-navigation {
    position: absolute;
    z-index: 3;
    inset: auto 22px 16px;
    display: flex;
    justify-content: center;
  }
  #theosu-wrap-story .story-next {
    min-height: 44px;
    min-width: 64px;
    color: var(--story-green);
    background: transparent;
    border: 0;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 16px;
  }
  #theosu-wrap-story .story-next:hover { text-decoration: underline; text-underline-offset: 4px; }
  #theosu-wrap-story .story-announcement {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #theosu-wrap-story .story-source { color: #a6a6a6; font-size: 11px; }
  @media (max-width: 350px) {
    #theosu-wrap-story .story-panel { padding-inline: 17px; }
    #theosu-wrap-story .story-header, #theosu-wrap-story .story-navigation { inset-inline: 16px; }
    #theosu-wrap-story .story-course .story-collage { margin-block: 19px 18px; }
  }
  @media (prefers-reduced-motion: reduce) {
    #theosu-wrap-story .story-panel:not([hidden]) :is(.story-orbit, .story-portrait-drift) { animation: none; }
    #theosu-wrap-story .story-portrait { transition: none; }
  }
