/* ── Sticky wrapper: provides scroll distance for the clip-path animation ── */
.sr-hero-wrapper {
height: 280vh;  /* 100vh hero + 180vh scroll distance (desktop) */
position: relative;
}

.sr-hero {
height: 100vh;
background: #FDFBF7;
position: sticky;
top: 0;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
padding: 0 20px;
transition:none !important;
}

.sr-hero-title {
font-family: "Proxima Nova", Sans-serif;
font-size: 180px;
text-transform: uppercase;
line-height: 1em;
letter-spacing: -0.02em;
font-weight: 900;
color:#0E2344;
overflow: hidden;
position: relative;
z-index: 2;
will-change: transform;
text-align: center;
margin: 0;
padding: 0;
}

.sr-hero-title .char {
display: inline-block;
}

.sr-project-card {
position: absolute;
width: 100%;
height: 100%;
bottom: 0;
left: 0;
overflow: hidden;
z-index: 3;
will-change: clip-path;
}

.sr-project-card-image {
position: absolute;
inset:0;
background-size: cover;
background-position: center;
will-change: transform;
}

.sr-project-card-overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 1;
}

.sr-project-card-content {
position: absolute;
inset:0;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
gap:20px;
z-index: 2;
text-align: center;
padding: 40px;
opacity: 0;
}

.sr-see-all-btn {
position: fixed;
top: -1px;
left: 50%;
transform: translateX(-50%);
z-index: 9999;
font-family: "Proxima Nova", Sans-serif;
font-weight: 900;
font-size: 19px !important;
line-height: 1em;
letter-spacing: -0.02em;
text-transform: uppercase;
color: #0E2344;
text-decoration: none;
padding: 11px 46px !important;
opacity: 0;
visibility: hidden;
pointer-events: none;
background: #FDFBF7;
transition: all 0.15s ease;
-webkit-mask-image: url("https://7c.birgstudios.com/wp-content/uploads/2026/02/projects-btn-mask.svg");
mask-image: url("https://7c.birgstudios.com/wp-content/uploads/2026/02/projects-btn-mask.svg");
-webkit-mask-size: contain;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-position: center;
mask-position: center;
}

.sr-see-all-btn.is-visible {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

.sr-project-name {
font-family: "Proxima Nova", Sans-serif;
font-weight: 900;
font-size: 52px;
line-height: 1.2em;
letter-spacing: -0.02em;
text-transform:uppercase;
margin: 0;
padding: 0 0 2px 0;
border-bottom:solid 2px #FDFBF7;
}

.sr-project-name a {
color: #FDFBF7;
text-decoration: none;
transition: opacity 0.3s;
}

.sr-project-tags {
font-family: "IBM Plex Mono", Sans-serif;
font-size: 16px !important;
font-weight: 500;
letter-spacing: -0.03em;
color: #FDFBF7;
text-transform: uppercase;
margin: 0;
padding: 0;
display: flex;
align-items: center;
gap: 12px;
}

.sr-project-tags span {
font-size:0 !important;
width:6px;
height:6px;
display:inline-block;
background:#FDFBF7;
}

/* ── Scroll Track Indicator ── */
.sr-scroll-track {
position: absolute;
right: 40px;
top: 50%;
transform: translateY(-50%);
z-index: 10;
display: flex;
align-items: stretch;
gap: 24px;
opacity: 0;
visibility: hidden;
transition: all 0.15s ease;
}

.sr-scroll-track.is-visible {
opacity: 1;
visibility: visible;
}

.sr-track-numbers {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 20px;
}

.sr-track-item {
display: flex;
align-items: center;
gap: 12px;
height: 20px;
}

.sr-track-dash {
display: block;
width: 0;
height: 1.5px;
background: #FDFBF7;
transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sr-track-item.is-active .sr-track-dash {
width: 16px;
}

.sr-track-number {
font-family: "IBM Plex Mono", monospace;
font-size: 14px;
font-weight: 500;
letter-spacing: 0.02em;
color: rgba(253, 251, 247, 0.35);
line-height: 1;
transition: color 0.35s ease;
min-width: 20px;
text-align: right;
}

.sr-track-item.is-active .sr-track-number {
color: #FDFBF7;
}

/* ── Vertical progress bar ── */
.sr-track-bar {
position: relative;
width: 3px;
align-self: stretch;
margin-block:-4px;
}

.sr-track-bar-bg {
position: absolute;
inset: 0;
background: rgba(253, 251, 247, 0.2);
border-radius: 2px;
}

.sr-track-bar-fill {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 0%;
background: #FDFBF7;
border-radius: 2px;
will-change: height;
}

.sr-jarallax {
position: relative;
height: 110vh;
min-height: 500px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}

.sr-section-overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 1;
}

.sr-section-content {
position: relative;
z-index: 2;
text-align: center;
padding: 0;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
gap:20px;
}

@media (max-width: 1024px) {

/* ── Hero wrapper: no extra scroll distance, no sticky ── */
.sr-hero-wrapper {
    height: auto;
}

/* ── Hero becomes a column: title block → project card block ── */
.sr-hero {
    position: relative;
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: #FDFBF7;
    overflow: visible;
    padding: 0;
}

/* ── Title gets its own space above the image ── */
.sr-hero-title {
    font-size: 40px;
    margin-block: 80px;
    width: calc(100% - 40px);
    align-self: center;
    box-sizing: border-box;
}

/* ── Project card: relative flow, full viewport height ── */
.sr-project-card {
    position: relative;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    min-height: 500px;
    bottom: auto;
    left: auto;
    clip-path: none !important;
    will-change: auto;
}

.sr-project-card-content {
    opacity: 1 !important;
    padding:20px;
    gap:12px;
}

.sr-section-content {
    height: 100%;
    padding: 20px;
    gap:12px;
}

.sr-jarallax {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

.sr-project-name {
    font-size: 27px;
}

.sr-project-tags {
    font-size:14px !important;
}

/* ── Force jarallax image containers to always cover on iOS ── */
.sr-jarallax [id^="jarallax-container"],
.sr-project-card [id^="jarallax-container"] {
    min-height: 100% !important;
}

.sr-jarallax [id^="jarallax-container"] > *,
.sr-project-card [id^="jarallax-container"] > * {
    min-height: 100% !important;
    object-fit: cover !important;
}

/* ── Hide scroll track & see-all button on mobile ── */
.sr-scroll-track {
    display: none !important;
}

.sr-see-all-btn {
    display: none !important;
}

}