/* Short case study layout (Oct 2026). Loaded after site.css on each case study page. */

.story{--wrap:1120px}
.story section,.story .story-hero,.story .story-next{padding-left:max(6vw,16px);padding-right:max(6vw,16px)}
.story .inner{max-width:var(--wrap);margin:0 auto}

/* hero */
.story-hero{position:relative;padding-top:9rem;padding-bottom:4rem}
.story-hero .inner{display:grid;grid-template-columns:1.05fr 1fr;gap:4rem;align-items:center}
.story-hero .cs-back{margin-bottom:1.5rem}
.story-eyebrow{font-family:var(--mono);font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:var(--green-deep);margin-bottom:1rem}
.story-hero h1{font-size:clamp(2.6rem,5vw,4.3rem);margin-bottom:1.25rem;color:var(--ink)}
.story-hero h1 em{color:var(--rose)}
.story-hook{font-size:1.2rem;line-height:1.6;color:var(--ink);max-width:34rem;margin-bottom:1.5rem}
.story-chips{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;margin-bottom:2rem}
.story-chips li{font-size:.85rem;padding:.4rem .9rem;border-radius:999px;background:rgba(255,255,255,.6);border:1px solid var(--glass-edge);color:var(--ink);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.story-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}
.story .btn-primary,.story .btn-secondary{padding:.85rem 1.5rem!important;text-decoration:none}

/* image spots */
.shot{position:relative;border-radius:28px;overflow:hidden;background:rgba(255,255,255,.5);border:1px solid var(--glass-edge);box-shadow:0 30px 60px -32px rgba(46,39,51,.4);margin:0}
.shot img{display:block;width:100%;height:auto}
.shot.empty{aspect-ratio:4/3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;text-align:center;padding:2rem;border:2px dashed rgba(46,39,51,.25);box-shadow:none;background:rgba(255,255,255,.4);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.shot.empty b{font-family:var(--mono);font-weight:400;font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:var(--green-deep)}
.shot.empty span{color:var(--ink-soft);font-size:.95rem;max-width:22rem}
.shot.wide.empty{aspect-ratio:16/8}
.shot-row{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;margin-top:1.25rem}

/* challenge + what I did */
.story-block{padding-top:3.5rem;padding-bottom:3.5rem}
.story-block h2{font-size:clamp(2rem,3.6vw,2.9rem);margin-bottom:1rem;color:var(--ink)}
.story-block h2 em{color:var(--rose)}
.story-label{font-family:var(--mono);font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:var(--green-deep);margin-bottom:.75rem}
.story-lede{font-size:1.15rem;line-height:1.7;color:var(--ink);max-width:44rem}
.did-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;margin-top:2rem}
.did{padding:1.75rem;border-radius:24px;background:rgba(255,255,255,.55);border:1px solid var(--glass-edge);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);box-shadow:0 20px 50px -28px rgba(46,39,51,.35)}
.did-num{display:inline-flex;align-items:center;justify-content:center;width:2.2rem;height:2.2rem;border-radius:50%;background:var(--green-glass);font-family:var(--mono);font-size:.8rem;color:var(--ink);margin-bottom:1rem}
.did h3{font-size:1.3rem;font-weight:500;letter-spacing:-.015em;margin-bottom:.5rem;color:var(--ink)}
.did p{color:var(--ink-soft);line-height:1.65}
.story-note{margin-top:1.5rem;color:var(--ink);font-size:1.05rem}

/* "what this means for you" */
.for-you{margin-top:2.5rem;padding:1.75rem 2rem;border-radius:24px;background:var(--green-glass);border:1px solid rgba(63,116,88,.35);display:grid;grid-template-columns:auto 1fr;gap:1.25rem;align-items:start}
.for-you .story-label{margin:0;padding-top:.3rem;color:var(--ink)}
.for-you p{font-size:1.15rem;line-height:1.6;color:var(--ink)}

/* results */
.story-results{padding-top:4.5rem;padding-bottom:5rem;margin-top:2rem;-webkit-mask-image:linear-gradient(transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(transparent,#000 12%,#000 88%,transparent);background:
  radial-gradient(50% 70% at 85% 10%,var(--blush),transparent 70%),
  radial-gradient(45% 60% at 10% 90%,var(--mint),transparent 70%),
  radial-gradient(40% 60% at 50% 50%,var(--lilac),transparent 70%)}
.story-results h2{font-size:clamp(2rem,3.6vw,2.9rem);color:var(--ink);text-align:center;margin-bottom:2.5rem}
.story-results h2 em{color:var(--rose)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem;list-style:none}
.stat{padding:2rem 1.5rem;border-radius:28px;text-align:center;background:rgba(255,255,255,.6);border:1px solid var(--glass-edge);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);box-shadow:0 24px 50px -30px rgba(46,39,51,.4)}
.stat-n{display:block;font-size:clamp(3.2rem,6.5vw,5.2rem);line-height:1;letter-spacing:-.04em;color:var(--ink);margin-bottom:.75rem}
.stat-n em{font-family:var(--accent-serif);font-style:italic;color:var(--rose)}
.stat-l{display:block;color:var(--ink-soft);line-height:1.5;font-size:1rem}
.story-cta{margin-top:3.5rem;text-align:center}
.story-cta h3{font-size:clamp(1.6rem,3vw,2.3rem);font-weight:400;letter-spacing:-.02em;color:var(--ink);margin-bottom:.6rem}
.story-cta h3 em{font-family:var(--accent-serif);font-style:italic;color:var(--rose)}
.story-cta p{color:var(--ink-soft);font-size:1.05rem;margin-bottom:1.5rem}
.story-cta .story-actions{justify-content:center}
.story-cta .btn-primary{font-size:1.05rem!important;padding:1.05rem 2rem!important}

/* next project */
.story-next{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding-top:2.5rem;padding-bottom:2.5rem}
.story-next .inner{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;width:100%}
.story-next a{color:var(--ink);text-decoration:none;font-size:1.05rem}
.story-next a span{display:block;font-family:var(--mono);font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:.25rem}
.story-next a:hover{text-decoration:underline;text-underline-offset:5px}

@media (max-width:900px){
  .story-hero{padding-top:7.5rem}
  .story-hero .inner{grid-template-columns:1fr;gap:2.5rem}
  .did-grid{grid-template-columns:1fr}
  .shot-row{grid-template-columns:1fr}
  .for-you{grid-template-columns:1fr;gap:.5rem}
  .story-next a.next{text-align:left}
}
.story-next a.next{text-align:right}
.shot.wide img{max-height:560px;object-fit:cover;object-position:center 30%}
.shot.wide.fit img{max-height:none;object-fit:contain}
.shot figcaption{padding:.75rem 1.25rem;font-size:.9rem;font-style:italic;color:var(--ink-soft);background:rgba(255,255,255,.7)}
.shot{min-width:0}.shot-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}@media (max-width:900px){.shot-row{grid-template-columns:minmax(0,1fr)}}
.story .shot img{width:100%;max-width:100%;height:auto}

/* side-by-side scrolling before/after phones */
.phone-compare{margin-top:1.25rem;padding:2rem 1.25rem 1.25rem;background:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.pc-pair{display:flex;justify-content:center;gap:clamp(1.25rem,5vw,4rem)}
.pc-col{display:flex;flex-direction:column;align-items:center;gap:.9rem;flex:0 1 270px;min-width:0}
.pc-tag{font-family:var(--mono);font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);padding:.35rem .9rem;border-radius:999px;background:rgba(255,255,255,.75);border:1px solid var(--line-soft)}
.pc-tag.after{background:var(--pink-glass);border-color:var(--pink-edge)}
.pc-phone{width:100%;aspect-ratio:9/19;overflow:hidden;border-radius:42px;padding:10px;background:#2e2733;box-shadow:0 30px 60px -25px rgba(46,39,51,.55),inset 0 0 0 2px #4a4150}
.pc-screen{height:100%;border-radius:32px;overflow-y:auto;background:#fff;scrollbar-width:none}
.pc-screen::-webkit-scrollbar{display:none}
.story .pc-screen img{display:block;width:100%;height:auto;max-height:none}
.phone-compare figcaption{background:none;padding:1.1rem .5rem 0;text-align:center;font-size:.9rem}
.shot-row.single{grid-template-columns:minmax(0,1fr)}
.shot-row.single .shot.empty{aspect-ratio:16/7}
@media (max-width:600px){.pc-phone{border-radius:28px;padding:6px}.pc-screen{border-radius:22px}}

/* hero with the before/after phones under the description */
.story-hero.with-phones .inner{grid-template-columns:minmax(0,1fr);gap:2rem}
.story-hero.with-phones .story-chips{margin-bottom:0}
.story-hero.with-phones .phone-compare{margin-top:0}
.story-hero.with-phones .inner > .story-actions{justify-content:center}

/* small line icons on the "what I did" cards */
.did-icon{display:inline-flex;align-items:center;justify-content:center;width:3.75rem;height:3.75rem;border-radius:50%;background:var(--green-glass);margin-bottom:1rem}
.did-icon svg{width:2.1rem;height:2.1rem;fill:none;stroke:var(--ink);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

/* side-by-side scrolling before/after laptops */
.laptop-compare{padding:2rem 1.25rem 1.25rem;background:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.lc-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1rem,3vw,2.5rem)}
.lc-col{display:flex;flex-direction:column;align-items:center;gap:.9rem;min-width:0}
.lc-laptop{width:100%}
.lc-lid{margin:0 6%;aspect-ratio:16/10;overflow:hidden;padding:2.2% 2.2% 2.6%;border-radius:16px 16px 4px 4px;background:#2e2733;box-shadow:inset 0 0 0 2px #4a4150}
.laptop-compare .pc-screen{height:100%;border-radius:4px;overflow-y:auto;background:#fff;scrollbar-width:none}
.lc-base{height:12px;border-radius:0 0 14px 14px;background:linear-gradient(#cfc8d3,#9d95a3);box-shadow:0 18px 30px -16px rgba(46,39,51,.55);position:relative}
.lc-base::before{content:"";position:absolute;left:50%;top:0;width:16%;height:5px;transform:translateX(-50%);border-radius:0 0 8px 8px;background:#8a8290}
.laptop-compare figcaption{background:none;padding:1.1rem .5rem 0;text-align:center;font-size:.9rem}
@media (max-width:700px){.lc-pair{grid-template-columns:minmax(0,1fr)}.lc-lid{border-radius:10px 10px 3px 3px}}

/* start-to-finish timeline */
.tl{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.25rem 1.25rem;margin-top:2.25rem}
.tl-step{position:relative;padding-top:1.9rem}
.tl-step::before{content:"";position:absolute;top:.55rem;left:0;right:-1.25rem;height:2px;background:linear-gradient(90deg,var(--green-deep),rgba(63,116,88,.25))}
.tl-step:nth-child(3n)::before,.tl-step:last-child::before{right:0}
@media (min-width:761px){.tl:has(> .tl-step:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}.tl:has(> .tl-step:nth-child(4):last-child) .tl-step:nth-child(3n)::before{right:-1.25rem}.tl:has(> .tl-step:nth-child(4):last-child) .tl-step:last-child::before{right:0}}
.tl-step::after{content:"";position:absolute;top:0;left:0;width:1.15rem;height:1.15rem;border-radius:50%;background:#fff;border:3px solid var(--green-deep);box-shadow:0 0 0 4px var(--green-glass)}
.tl-when{display:inline-block;font-family:var(--mono);font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);background:var(--green-glass);border-radius:999px;padding:.25rem .7rem;margin-bottom:.6rem}
.tl-step h3{font-size:1.2rem;font-weight:500;letter-spacing:-.015em;color:var(--ink);margin-bottom:.35rem}
.tl-step p{color:var(--ink-soft);line-height:1.6;max-width:22rem}
@media (max-width:760px){
  .tl{grid-template-columns:minmax(0,1fr);gap:1.75rem}
  .tl-step{padding:0 0 0 2.2rem}
  .tl-step::before{top:1.1rem;bottom:-1.75rem;left:.5rem;right:auto;width:2px;height:auto;background:rgba(63,116,88,.4)}
  .tl-step:nth-child(3n)::before{right:auto}
  .tl-step:last-child::before{display:none}
}

/* laptop + phone pair (finished site on both screens) */
.device-pair{padding:2rem 1.25rem 1.25rem;background:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.dv-pair{display:grid;grid-template-columns:minmax(0,2.6fr) minmax(0,1fr);gap:clamp(1rem,3vw,2.5rem);align-items:end}
.dv-mob{flex:none;width:100%}
.dv-mob .pc-phone{width:min(100%,250px)}
.device-pair .lc-lid .pc-screen{border-radius:4px}
.device-pair figcaption{background:none;padding:1.1rem .5rem 0;text-align:center;font-size:.9rem}
@media (max-width:700px){.dv-pair{grid-template-columns:minmax(0,1fr)}.dv-mob .pc-phone{width:min(70%,250px)}}

/* three close-up crops in a row */
.shot-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.shot-row.three .shot img{aspect-ratio:4/5;object-fit:cover;object-position:top}
@media (max-width:900px){.shot-row.three{grid-template-columns:minmax(0,1fr)}.shot-row.three .shot{max-width:420px;margin-inline:auto}}

/* challenge text with a small screenshot beside it */
.challenge-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,260px);gap:3rem;align-items:center}
.challenge-shot{max-width:260px;justify-self:end}
@media (max-width:760px){.challenge-split{grid-template-columns:minmax(0,1fr);gap:1.75rem}.challenge-shot{justify-self:center;max-width:240px}}
/* 8-step phone flow (Queer Calendar) */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.fr-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:1rem .75rem}
.flow-row .pc-col{flex:none}
.flow-row .pc-tag{font-size:.66rem;padding:.3rem .6rem;white-space:nowrap}
.flow-row .pc-phone{border-radius:20px;padding:5px}
.flow-row .pc-screen{border-radius:15px}
@media (max-width:1100px){.fr-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1.75rem 1.25rem}.flow-row .pc-phone{border-radius:30px;padding:7px}.flow-row .pc-screen{border-radius:23px}.flow-row .pc-tag{font-size:.75rem}}
@media (max-width:600px){.fr-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem 1rem}.flow-row .pc-phone{border-radius:24px;padding:6px}.flow-row .pc-screen{border-radius:18px}}
.shot-row.single .shot:has(img[src$="qc-site-map.jpg"]){max-width:620px;margin-inline:auto}
.single-phone .pc-col{flex-basis:260px}
.style-shot{margin-top:2.5rem}
.laptop-single{max-width:820px;margin-inline:auto}
.laptop-single .lc-lid{aspect-ratio:auto}
.story .laptop-single .lc-lid img{display:block;width:100%;height:auto;border-radius:4px}
.story .hero-side{background:none;border:0;box-shadow:none;padding:0;-webkit-backdrop-filter:none;backdrop-filter:none;justify-self:center}
.hero-side .pc-col{flex-basis:230px}
@media (max-width:900px){.hero-side .pc-col{flex-basis:210px}}
/* still phone frames sized to the screenshot */
.story .phone-still{background:none;border:0;box-shadow:none;overflow:visible;display:flex;flex-direction:column;align-items:center}
.phone-still .pc-phone{aspect-ratio:auto;width:min(100%,270px);border-radius:38px}
.phone-still .pc-screen{height:auto;overflow:hidden;border-radius:30px}
.story .shot-row.three .phone-still img{aspect-ratio:auto;object-fit:initial}
.phone-still figcaption{background:none;text-align:center;max-width:270px;padding:1rem .25rem 0}
.story .clear-shot{background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.story .clear-shot figcaption{background:none;text-align:center}
.images-first-gap{margin-top:2.5rem}
.shot-row{align-items:start}
.flow-row .pc-screen{scrollbar-width:thin}.flow-row .pc-screen::-webkit-scrollbar{display:block;width:4px}.flow-row .pc-screen::-webkit-scrollbar-thumb{background:rgba(46,39,51,.3);border-radius:4px}
