.page-sr,
.page-skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.page-skip:focus {
    position: fixed;
    z-index: 10001;
    top: 1rem;
    left: 1rem;
    padding: .75rem 1rem;
    border-radius: .5rem;
    background: var(--text-main);
    color: var(--bg-main);
}

.inner-page .nav__link[aria-current] {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: #ff7666;
    text-underline-offset: .45rem;
}

.service-card--detail { position: relative; }
.service-card--detail .service-card__link::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    content: "";
}
.service-card--detail:focus-within { outline: 2px solid #ff7666; outline-offset: 4px; }
.service-card--detail:focus-within h3, .service-card--detail:hover h3 {
    text-decoration: underline;
    text-decoration-color: #ff7666;
    text-underline-offset: .25em;
}

.page-main.section { padding-top: 8rem; }
.page-main [id] { scroll-margin-top: 7rem; }
.page-main :is(a, button):focus-visible,
#portfolio .project-card a:focus-visible,
.inner-page .footer a:focus-visible {
    outline: 2px solid #ff7666;
    outline-offset: 4px;
}

.page-crumb { margin-bottom: clamp(1.8rem, 4vw, 3.5rem); }
.page-crumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem .875rem;
    list-style: none;
    color: var(--text-secondary);
    font-size: .875rem;
}
.page-crumb li + li::before { content: "/"; color: var(--text-muted); margin-right: .875rem; }
.page-crumb a, .page-text-link { color: inherit; text-decoration: underline; text-underline-offset: .25em; }
.page-crumb a:hover, .page-text-link:hover { color: #ff9387; }
.page-crumb li[aria-current="page"] { color: var(--text-muted); }

.page-intro { margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.page-intro h1 {
    max-width: 18ch;
    font-size: clamp(2.45rem, 5.8vw, 5.125rem);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1.06;
    text-wrap: balance;
}
.page-intro > p:not(.page-intro__tag) {
    max-width: 62ch;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.page-intro__tag { margin-bottom: .6rem; color: #ff9387; font-size: .9375rem; font-weight: 700; }
.page-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.page-case-hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding-bottom: clamp(1rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--border-subtle);
}
.page-case-hero .page-intro { margin: 0; }
.page-case-hero h1 { font-size: clamp(2.45rem, 5vw, 4.5rem); }

.page-cover {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    background: #0c111c;
}
.page-cover img { display: block; width: 100%; height: auto; }

.page-story {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(2rem, 6vw, 5rem);
    padding-block: clamp(2.5rem, 6vw, 5.25rem);
    border-bottom: 1px solid var(--border-subtle);
}
.page-story h2, .page-related h2, .page-close h2 {
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    letter-spacing: -.04em;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}
.page-story h3 { margin: 1.5rem 0 .55rem; font-size: 1.16rem; }
.page-story p, .page-offers dd, .page-deliverables { color: var(--text-secondary); line-height: 1.7; }
.page-story p { max-width: 62ch; }
.page-text-link {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1.25rem;
    color: var(--text-main);
    font-weight: 650;
}
.page-text-link i { color: #ff7666; }
.page-panel {
    padding: clamp(1.35rem, 4vw, 2.2rem);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
}
.page-panel h2 { font-size: clamp(1.3rem, 2.1vw, 1.75rem); }
.page-offers > div + div { border-top: 1px solid var(--border-subtle); margin-top: 1rem; padding-top: 1rem; }
.page-offers dt { font-weight: 700; margin-bottom: .25rem; }
.page-deliverables { padding-left: 1.2rem; }
.page-deliverables li + li { margin-top: .4rem; }
.page-deliverables li::marker { color: #ff7666; }
.page-related { margin-top: clamp(2.5rem, 6vw, 5.25rem); }

.page-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-top: clamp(2rem, 5vw, 4.5rem);
}
.page-close h2 { margin: 0; }
.page-close .btn { flex-shrink: 0; }
.page-close__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__guide-link { margin-top: 1.25rem; }
.page-filters { justify-content: flex-start; }
[data-project-filters][hidden], [data-project][hidden] { display: none; }
.inner-page .footer__bottom { border-top: 0; }

@media (max-width: 768px) {
    .page-main.section { padding-top: 6.75rem; }
    .page-story, .page-case-hero { grid-template-columns: 1fr; }
    .page-cover, .page-panel { border-radius: var(--radius-lg); }
}

@media (max-width: 540px) {
    .page-close { align-items: stretch; flex-direction: column; }
    .page-actions, .page-close__actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .service-card--detail, .service-card--detail .service-card__link i,
    .inner-page .page-main a, .inner-page .project-card, .inner-page .project-card__shot {
        transition: none;
    }
    .service-card--detail:hover, .inner-page .project-card:hover { transform: none; }
}
