.wrap {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 24px 0;
}

.mark {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
}

.mark .dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 0 rgba(31, 107, 255, 0.5);
    animation: pulse 3.2s ease-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 107, 255, 0.45);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(31, 107, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(31, 107, 255, 0);
    }
}

.mark .name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

nav a {
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--blue);
}

.cta {
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 8px 20px -8px rgba(31, 107, 255, 0.6);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -8px rgba(31, 107, 255, 0.7);
}

@media (max-width: 760px) {
    nav .navlink {
        display: none;
    }
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
    gap: 40px;
    padding: 90px 0 64px;
}

h1 {
    color: var(--ink);
    font-size: clamp(46px, 6.4vw, 84px);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -2.5px;
}

h1 .em {
    position: relative;
    display: inline-block;
    color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

h1 .em canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.period-hotspot {
    position: absolute;
    z-index: 3;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

h1 .line {
    display: block;
    opacity: 0;
    animation: rise 0.9s forwards;
}

h1 .line:nth-child(1) {
    animation-delay: 0.10s;
}

h1 .line:nth-child(2) {
    animation-delay: 0.20s;
}

h1 .line:nth-child(3) {
    animation-delay: 0.30s;
}

.lede {
    padding-bottom: 6px;
    color: var(--ink-soft);
    font-size: 16.5px;
    font-weight: 500;
    opacity: 0;
    animation: rise 0.9s 0.4s forwards;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
}

.sec-head h2 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mut);
}

.sec-head .count {
    color: var(--mut);
    font-size: 13px;
    font-weight: 600;
}

.directory {
    list-style: none;
    border-top: 1px solid var(--line);
    margin-bottom: 80px;
}

.row {
    position: relative;
    display: grid;
    grid-template-columns: 56px 220px 1fr 32px;
    align-items: center;
    gap: 24px;
    padding: 28px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    opacity: 0;
    animation: rise 0.6s forwards;
    transition: background 0.3s, padding-left 0.3s;
}

.row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--blue);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s;
}

.row:hover {
    background: var(--blue-soft);
    padding-left: 32px;
}

.row:hover::before {
    transform: scaleY(1);
}

.row:nth-child(1) { animation-delay: 0.45s; }
.row:nth-child(2) { animation-delay: 0.51s; }
.row:nth-child(3) { animation-delay: 0.57s; }
.row:nth-child(4) { animation-delay: 0.63s; }
.row:nth-child(5) { animation-delay: 0.69s; }
.row:nth-child(6) { animation-delay: 0.75s; }

.row-idx {
    color: var(--mut);
    font-size: 14px;
    font-weight: 700;
}

.row-name {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.row-name svg {
    width: 22px;
    height: 22px;
    color: var(--blue);
}

.row-desc {
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
}

.row-go {
    justify-self: end;
    color: var(--mut);
    font-size: 18px;
    transition: transform 0.3s, color 0.3s;
}

.row:hover .row-go {
    transform: translate(3px, -3px);
    color: var(--blue);
}

@media (max-width: 720px) {
    .row {
        grid-template-columns: 36px 1fr 24px;
    }
    .row-desc {
        display: none;
    }
    .row-name {
        font-size: 22px;
    }
}

footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 36px 0 60px;
    border-top: 1px solid var(--line);
}

footer .muted {
    color: var(--mut);
    font-size: 13px;
    font-weight: 500;
}

footer .links {
    display: flex;
    gap: 22px;
}

footer .links a {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

footer .links a:hover {
    color: var(--blue);
}

#copyright {
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
}

#copyright:hover {
    color: var(--blue);
}

#copyright:active {
    transform: scale(0.85);
}
