/* Layer Native · case study sections v3 (paper). Loaded after site.css on the new case study pages. */
.c3{--tx:#3a3e48}
.c3 .sec{padding-block:clamp(90px,13vh,150px)}
.c3 .sec+.sec{border-top:1px solid var(--line-l)}
.c3 .h2{margin:14px 0 0;font-weight:400;font-size:clamp(34px,4.2vw,64px);letter-spacing:-.055em;line-height:.98}
.c3 .sub{margin:0;color:var(--tx);font-size:clamp(16px,1.3vw,19px);line-height:1.55;max-width:46ch}
.c3 .head{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end;margin-bottom:clamp(40px,6vh,72px)}
.c3 .head>*{min-width:0}
.c3 figure{margin:0}
.c3 figcaption{margin-top:10px;font-size:12.5px;line-height:1.45;color:var(--mute-l)}
.c3 .tag{font-family:var(--f-mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute-l)}

/* overview: statement + four columns */
.c3-ov .lead{margin:0;font-size:clamp(26px,3vw,46px);line-height:1.12;letter-spacing:-.04em;max-width:28ch}
.c3-ov .cols{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(20px,2.4vw,40px);margin-top:clamp(48px,7vh,80px)}
.c3-ov .cols>div{border-top:1px solid var(--ink);padding-top:18px;display:flex;flex-direction:column;gap:10px;min-width:0}
.c3-ov .cols h3{margin:0;font-weight:500;font-size:19px;letter-spacing:-.02em}
.c3-ov .cols p{margin:0;color:var(--tx);font-size:15px;line-height:1.6}

/* before / after slider */
.c3-cmp{position:relative;overflow:hidden;border-radius:6px;background:#111;cursor:ew-resize;user-select:none;touch-action:pan-y;--x:50%}
.c3-cmp img{display:block;width:100%;height:auto;pointer-events:none}
.c3-cmp .top{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;clip-path:inset(0 calc(100% - var(--x)) 0 0)}
.c3-cmp .bar{position:absolute;top:0;bottom:0;left:var(--x);width:1px;background:#fff;transform:translateX(-.5px)}
.c3-cmp .knob{position:absolute;top:50%;left:var(--x);width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:var(--paper);color:var(--ink);display:grid;place-items:center;font-size:15px;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.c3-cmp .lb{position:absolute;top:14px;font-family:var(--f-mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:#fff;background:rgba(11,12,16,.55);padding:5px 9px;border-radius:2px}
.c3-cmp .lb.l{left:14px}.c3-cmp .lb.r{right:14px}
.c3-pairs{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,64px);margin-top:clamp(56px,8vh,96px);align-items:start}
.c3-pair{display:flex;flex-direction:column;gap:18px}
.c3-pair .imgs{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}
.c3-pair .imgs figure{background:var(--paper-2);border-radius:6px;padding:18px 18px 0;display:flex;flex-direction:column}
.c3-pair .imgs figure img{width:100%;height:auto;display:block}
.c3-pair .imgs figure.dk{background:#16140f}
.c3-pair .imgs figure.dk figcaption{color:rgba(255,255,255,.6)}
.c3-pair .imgs figcaption{margin:12px 0 14px}
.c3-pair h3{margin:0;font-weight:500;font-size:22px;letter-spacing:-.025em}
.c3-pair p{margin:0;color:var(--tx);font-size:15.5px;line-height:1.6;max-width:48ch}

/* numbers: 2 x 2 ledger */
.c3-ledger{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--ink)}
.c3-ledger>div{display:grid;grid-template-columns:minmax(120px,auto) 1fr;gap:24px;align-items:baseline;padding:28px 0;border-bottom:1px solid var(--line-l)}
.c3-ledger>div:nth-child(odd){padding-right:32px;border-right:1px solid var(--line-l)}
.c3-ledger>div:nth-child(even){padding-left:32px}
.c3-ledger b{font-weight:400;font-size:clamp(56px,6.4vw,104px);letter-spacing:-.065em;line-height:.85;font-variant-numeric:tabular-nums}
.c3-ledger span{color:var(--tx);font-size:16px;max-width:22ch}

/* development: sticky chapter index + chapters */
.c3-dev{display:grid;grid-template-columns:minmax(220px,.42fr) 1fr;gap:clamp(32px,5vw,96px);align-items:start}
.c3-dev>*{min-width:0}
.c3-idx{position:sticky;top:110px;display:flex;flex-direction:column;border-top:1px solid var(--ink)}
.c3-idx a{display:grid;grid-template-columns:34px 1fr;gap:10px;padding:13px 0;border-bottom:1px solid var(--line-l);font-size:15px;color:var(--mute-l);transition:color .3s,padding .4s cubic-bezier(.2,.8,.2,1)}
.c3-idx a span{font-family:var(--f-mono);font-size:11px;padding-top:3px}
.c3-idx a:hover{color:var(--ink)}
.c3-idx a.on{color:var(--ink);padding-left:10px}
.c3-chs{display:flex;flex-direction:column}
.c3-ch{padding-bottom:clamp(64px,10vh,110px);scroll-margin-top:110px}
.c3-ch+.c3-ch{padding-top:clamp(40px,6vh,64px);border-top:1px solid var(--line-l)}
.c3-ch .when{display:block;font-family:var(--f-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute-l)}
.c3-ch h3{margin:12px 0 18px;font-weight:400;font-size:clamp(28px,2.8vw,42px);letter-spacing:-.045em;line-height:1.02}
.c3-ch p{margin:0;color:var(--tx);font-size:16.5px;line-height:1.65;max-width:62ch}
.c3-ch ul{margin:20px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:10px 28px;max-width:760px}
.c3-ch li{position:relative;padding-left:18px;color:var(--tx);font-size:14.5px;line-height:1.5}
.c3-ch li::before{content:"";position:absolute;left:0;top:.7em;width:8px;height:1px;background:var(--ink)}
.c3-ch .media{display:grid;gap:14px;margin-top:32px}
.c3-ch .media.m1{grid-template-columns:1fr}
.c3-ch .media.m2{grid-template-columns:1fr 1fr}
.c3-ch .media.m3{grid-template-columns:1fr 1fr}
.c3-ch .media.m3 figure:first-child{grid-column:span 2}
.c3-ch .media.m4{grid-template-columns:1fr 1fr 1fr 1fr}
.c3-ch .media.m4 figure:nth-child(-n+2){grid-column:span 2}
.c3-ch .media img{display:block;width:100%;height:auto;border-radius:6px;background:var(--paper-2)}
.c3-ch .media figure.small{max-width:300px}

/* gallery on paper */
.c3-row{display:flex;gap:clamp(14px,1.4vw,22px);overflow-x:auto;scroll-snap-type:x mandatory;padding:0 var(--gutter) 20px;scroll-padding-inline:var(--gutter);cursor:grab;scrollbar-width:thin}
.c3-row.dragging{cursor:grabbing;scroll-snap-type:none}
.c3-row figure{flex:none;scroll-snap-align:start}
.c3-row img{display:block;border-radius:6px;-webkit-user-drag:none;user-select:none;pointer-events:none}
.c3-row.wide figure{width:min(72vw,860px)}
.c3-row.wide img{width:100%;height:auto}

/* features: numbered two-column list */
.c3-list{display:grid;grid-template-columns:1fr 1fr;gap:0 clamp(32px,5vw,80px);counter-reset:f}
.c3-list>div{counter-increment:f;display:grid;grid-template-columns:44px 1fr;gap:6px 14px;padding:26px 0;border-top:1px solid var(--line-l)}
.c3-list>div::before{content:counter(f,decimal-leading-zero);font-family:var(--f-mono);font-size:11px;color:var(--mute-l);padding-top:6px;grid-row:span 2}
.c3-list h3{margin:0;font-weight:500;font-size:19px;letter-spacing:-.02em}
.c3-list p{margin:0;color:var(--tx);font-size:15px;line-height:1.6}

/* rules: notes as numbered cards */
.c3-rules{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.c3-rules li{list-style:none;background:rgba(255,255,255,.55);border:1px solid var(--line-l);border-radius:6px;padding:22px 24px;color:var(--tx);font-size:15px;line-height:1.6}
.c3-rules{margin:0;padding:0}
.c3-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.c3-chips span{font-family:var(--f-mono);font-size:12px;padding:8px 12px;border:1px solid var(--line-l);border-radius:2px;background:rgba(255,255,255,.5)}

@media (max-width:1000px){
  .c3 .head,.c3-pairs,.c3-dev,.c3-list,.c3-rules,.c3-ledger{grid-template-columns:1fr}
  .c3-ov .cols{grid-template-columns:1fr 1fr}
  .c3-idx{display:none}
  .c3-ledger>div:nth-child(odd){padding-right:0;border-right:0}
  .c3-ledger>div:nth-child(even){padding-left:0}
  .c3-ch ul{grid-template-columns:1fr}
  .c3-ch .media.m4{grid-template-columns:1fr 1fr}
  .c3-ch .media.m4 figure:nth-child(-n+2){grid-column:span 2}
}
@media (max-width:560px){ .c3-ov .cols{grid-template-columns:1fr} }
.c3 .c3-cmp img.top{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0;background:none}
.c3 .c3-cmp img{border-radius:0;background:none}

/* ---------- more minimal patterns ---------- */
/* alternating rows */
.c3-alt{display:flex;flex-direction:column;gap:clamp(72px,11vh,130px)}
.c3-alt>article{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,5vw,96px);align-items:center}
.c3-alt>article:nth-child(even) .m{order:2}
.c3-alt .m{display:grid;gap:12px;grid-template-columns:repeat(var(--n,1),1fr);align-items:end}
.c3-alt .m img{display:block;width:100%;height:auto;border-radius:6px;background:var(--paper-2)}
.c3-alt .t .when{display:block;font-family:var(--f-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute-l)}
.c3-alt .t h3{margin:12px 0 16px;font-weight:400;font-size:clamp(26px,2.6vw,40px);letter-spacing:-.045em;line-height:1.03}
.c3-alt .t p{margin:0;color:var(--tx);font-size:16px;line-height:1.65}
.c3-alt .t ul{margin:18px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.c3-alt .t li{position:relative;padding-left:18px;color:var(--tx);font-size:14.5px;line-height:1.5}
.c3-alt .t li::before{content:"";position:absolute;left:0;top:.7em;width:8px;height:1px;background:var(--ink)}

/* accordion */
.c3-acc{border-top:1px solid var(--ink)}
.c3-acc details{border-bottom:1px solid var(--line-l)}
.c3-acc summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:56px 1fr auto 28px;gap:16px;align-items:baseline;padding:26px 0}
.c3-acc summary::-webkit-details-marker{display:none}
.c3-acc summary .n{font-family:var(--f-mono);font-size:11px;color:var(--mute-l)}
.c3-acc summary h3{margin:0;font-weight:400;font-size:clamp(22px,2.2vw,32px);letter-spacing:-.035em;line-height:1.1}
.c3-acc summary .w{font-family:var(--f-mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute-l);text-align:right}
.c3-acc summary::after{content:"+";font-weight:300;font-size:24px;line-height:1;justify-self:end;transition:transform .3s}
.c3-acc details[open] summary::after{transform:rotate(45deg)}
.c3-acc .bd{display:grid;grid-template-columns:56px 1fr 1fr;gap:0 16px;padding:0 0 40px}
.c3-acc .bd>div:first-child{grid-column:2}
.c3-acc .bd p{margin:0;color:var(--tx);font-size:16px;line-height:1.65;max-width:56ch}
.c3-acc .bd ul{margin:16px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:7px}
.c3-acc .bd li{position:relative;padding-left:18px;color:var(--tx);font-size:14.5px;line-height:1.5}
.c3-acc .bd li::before{content:"";position:absolute;left:0;top:.7em;width:8px;height:1px;background:var(--ink)}
.c3-acc .bd .m{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:start;padding-left:clamp(0px,2vw,32px)}
.c3-acc .bd .m img{display:block;width:100%;height:auto;border-radius:6px;background:var(--paper-2)}
.c3-acc .bd .m figure:only-child{grid-column:span 2}

/* horizontal cards */
.c3-hs{display:flex;gap:clamp(16px,1.6vw,28px);overflow-x:auto;scroll-snap-type:x mandatory;padding:0 var(--gutter) 22px;scroll-padding-inline:var(--gutter);cursor:grab;scrollbar-width:thin}
.c3-hs.dragging{cursor:grabbing;scroll-snap-type:none}
.c3-hs>article{flex:none;width:clamp(300px,31vw,440px);scroll-snap-align:start;display:flex;flex-direction:column;gap:14px;border-top:1px solid var(--ink);padding-top:18px}
.c3-hs .when{font-family:var(--f-mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute-l)}
.c3-hs h3{margin:0;font-weight:400;font-size:24px;letter-spacing:-.035em;line-height:1.08}
.c3-hs p{margin:0;color:var(--tx);font-size:15px;line-height:1.6}
.c3-hs .m{display:grid;grid-template-columns:repeat(var(--n,1),1fr);gap:8px;align-items:end}
.c3-hs .m img{display:block;width:100%;height:auto;max-height:340px;object-fit:contain;border-radius:6px;background:var(--paper-2);-webkit-user-drag:none;user-select:none;pointer-events:none}

/* masonry letters */
.c3-mas{columns:2;column-gap:clamp(20px,3vw,48px)}
.c3-mas>article{break-inside:avoid;margin-bottom:clamp(36px,5vh,56px);display:flex;flex-direction:column;gap:12px}
.c3-mas .m{display:grid;grid-template-columns:repeat(var(--n,1),1fr);gap:10px;margin-bottom:8px}
.c3-mas .m img{display:block;width:100%;height:auto;border-radius:6px;background:var(--paper-2)}
.c3-mas .when{font-family:var(--f-mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute-l)}
.c3-mas h3{margin:0;font-weight:400;font-size:clamp(24px,2.2vw,32px);letter-spacing:-.04em;line-height:1.08}
.c3-mas p{margin:0;color:var(--tx);font-size:15.5px;line-height:1.65}

/* sticky media */
.c3-st{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,6vw,110px);align-items:start}
.c3-st .pin{position:sticky;top:100px;height:calc(100vh - 140px);display:flex;align-items:center;justify-content:center}
.c3-st .pin figure{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;opacity:0;transition:opacity .6s}
.c3-st .pin figure.on{opacity:1}
.c3-st .pin img{max-width:100%;max-height:calc(100% - 40px);width:auto;height:auto;border-radius:8px;display:block}
.c3-st .txt>article{min-height:70vh;display:flex;flex-direction:column;justify-content:center;gap:14px;padding:40px 0;border-top:1px solid var(--line-l)}
.c3-st .txt>article:first-child{border-top:1px solid var(--ink)}
.c3-st .when{font-family:var(--f-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute-l)}
.c3-st h3{margin:0;font-weight:400;font-size:clamp(26px,2.6vw,40px);letter-spacing:-.045em;line-height:1.03}
.c3-st p{margin:0;color:var(--tx);font-size:16px;line-height:1.65}
.c3-st ul{margin:6px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:7px}
.c3-st li{position:relative;padding-left:18px;color:var(--tx);font-size:14.5px;line-height:1.5}
.c3-st li::before{content:"";position:absolute;left:0;top:.7em;width:8px;height:1px;background:var(--ink)}
.c3-st .mob{display:none}

/* stepper */
.c3-steps{position:relative}
.c3-steps .rail{display:grid;grid-template-columns:repeat(var(--n),1fr);border-top:1px solid var(--ink);margin-bottom:28px}
.c3-steps .rail button{background:none;border:0;padding:16px 10px 0 0;text-align:left;cursor:pointer;color:var(--mute-l);font:400 14px var(--f-sans);position:relative;display:flex;flex-direction:column;gap:6px}
.c3-steps .rail button::before{content:"";position:absolute;top:-5px;left:0;width:9px;height:9px;border-radius:50%;background:var(--paper);border:1px solid var(--ink)}
.c3-steps .rail button.on{color:var(--ink)}
.c3-steps .rail button.on::before{background:var(--ink)}
.c3-steps .rail small{font-family:var(--f-mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase}
.c3-steps .pane{display:none;grid-template-columns:1fr 1.25fr;gap:clamp(28px,5vw,80px);align-items:start;padding-top:24px}
.c3-steps .pane.on{display:grid;animation:c3in .5s ease}
@keyframes c3in{from{opacity:0;transform:translateY(10px)}}
.c3-steps .pane h3{margin:0 0 16px;font-weight:400;font-size:clamp(26px,2.6vw,40px);letter-spacing:-.045em;line-height:1.03}
.c3-steps .pane p{margin:0;color:var(--tx);font-size:16px;line-height:1.65}
.c3-steps .pane ul{margin:18px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:7px}
.c3-steps .pane li{position:relative;padding-left:18px;color:var(--tx);font-size:14.5px;line-height:1.5}
.c3-steps .pane li::before{content:"";position:absolute;left:0;top:.7em;width:8px;height:1px;background:var(--ink)}
.c3-steps .pane .m{display:grid;grid-template-columns:repeat(var(--n,1),1fr);gap:12px;align-items:start}
.c3-steps .pane .m img{display:block;width:100%;height:auto;border-radius:6px;background:var(--paper-2)}

/* numbers */
.c3-n4{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(16px,2vw,32px)}
.c3-n4>div{display:flex;flex-direction:column;gap:12px}
.c3-n4 b{font-weight:300;font-size:clamp(60px,7.4vw,124px);letter-spacing:-.07em;line-height:.85;font-variant-numeric:tabular-nums}
.c3-n4 span{color:var(--tx);font-size:15px;line-height:1.45;max-width:24ch;border-top:1px solid var(--line-l);padding-top:12px}
.c3-sent{margin:0;font-size:clamp(28px,3.4vw,54px);line-height:1.18;letter-spacing:-.045em;max-width:30ch}
.c3-sent b{font-weight:400;border-bottom:2px solid var(--ink)}
.c3-sent span{color:var(--mute-l)}

/* galleries */
.c3-row.tall figure{width:clamp(200px,19vw,290px)}
.c3-row.tall img{width:100%;height:auto;aspect-ratio:600/1300;object-fit:cover;object-position:top}
.c3-grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(12px,1.4vw,22px)}
.c3-grid4 img{display:block;width:100%;height:auto;aspect-ratio:600/1300;object-fit:cover;object-position:top;border-radius:8px}
.c3-sheets{display:grid;grid-template-columns:repeat(var(--n,4),1fr);gap:clamp(12px,1.4vw,22px);align-items:end}
.c3-sheets img{display:block;width:100%;height:auto;border-radius:6px;background:var(--paper-2)}

/* simple table (episodes) */
.c3-tbl{border-top:1px solid var(--ink)}
.c3-tbl>div{display:grid;grid-template-columns:140px 1fr 1.2fr;gap:24px;align-items:baseline;padding:22px 0;border-bottom:1px solid var(--line-l)}
.c3-tbl small{font-family:var(--f-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute-l)}
.c3-tbl h3{margin:0;font-weight:400;font-size:clamp(20px,2vw,28px);letter-spacing:-.03em}
.c3-tbl p{margin:0;color:var(--tx);font-size:15px;line-height:1.55}

@media (max-width:1000px){
  .c3-alt>article,.c3-st,.c3-steps .pane,.c3-steps .pane.on{grid-template-columns:1fr}
  .c3-alt>article:nth-child(even) .m{order:0}
  .c3-acc summary{grid-template-columns:36px 1fr 24px}
  .c3-acc summary .w{display:none}
  .c3-acc .bd{grid-template-columns:1fr}
  .c3-acc .bd>div:first-child{grid-column:1}
  .c3-acc .bd .m{padding:20px 0 0}
  .c3-mas{columns:1}
  .c3-st .pin{display:none}
  .c3-st .mob{display:block;margin-top:10px}
  .c3-st .mob img{width:100%;max-width:420px;height:auto;border-radius:8px}
  .c3-st .txt>article{min-height:0}
  .c3-steps .rail{grid-template-columns:repeat(3,1fr);row-gap:22px}
  .c3-n4{grid-template-columns:1fr 1fr;row-gap:40px}
  .c3-grid4{grid-template-columns:1fr 1fr}
  .c3-sheets{grid-template-columns:1fr 1fr}
  .c3-tbl>div{grid-template-columns:1fr;gap:6px}
}
/* calendar grid */
.c3-cal{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid var(--ink);border-left:1px solid var(--line-l)}
.c3-cal>article{border-right:1px solid var(--line-l);border-bottom:1px solid var(--line-l);padding:20px 20px 26px;display:flex;flex-direction:column;gap:12px;min-width:0}
.c3-cal>article:first-child{grid-column:span 2;grid-row:span 2}
.c3-cal .when{font-family:var(--f-mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute-l)}
.c3-cal img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:4px;background:var(--paper-2)}
.c3-cal>article:first-child img{aspect-ratio:16/10}
.c3-cal h3{margin:0;font-weight:400;font-size:clamp(20px,1.7vw,26px);letter-spacing:-.035em;line-height:1.1}
.c3-cal>article:first-child h3{font-size:clamp(26px,2.6vw,40px)}
.c3-cal p{margin:0;color:var(--tx);font-size:14.5px;line-height:1.6}
@media (max-width:1000px){ .c3-cal{grid-template-columns:1fr 1fr} .c3-cal>article:first-child{grid-row:auto} }
@media (max-width:560px){ .c3-cal{grid-template-columns:1fr} .c3-cal>article:first-child{grid-column:auto} }
/* tall single images inside alternating rows stay in proportion */
.c3-alt .m figure{display:flex;flex-direction:column;align-items:center}
.c3-alt .m img{width:auto;max-width:100%;max-height:min(70vh,620px)}
.c3-cal>article:first-child{grid-row:auto}
.c3-steps .pane .m figure{display:flex;flex-direction:column;align-items:center}
.c3-steps .pane .m img{width:auto;max-width:100%;max-height:min(68vh,600px)}

/* ================= v7 cleanup: one rhythm, framed media, no stray rules ================= */
.c3 .sec{padding-block:clamp(80px,10vh,120px)}
.c3 .head{margin-bottom:clamp(36px,5vh,56px);align-items:end}
.c3 .head .sub{padding-bottom:6px}

/* numbers: one rule above the row, nothing between number and label */
.c3-n4{border-top:1px solid var(--ink);padding-top:32px;gap:clamp(24px,3vw,48px)}
.c3-n4>div{gap:14px}
.c3-n4 span{border-top:0;padding-top:0;max-width:26ch}

/* framed media: every image group sits in the same calm box */
.c3-alt .m,.c3-acc .bd .m,.c3-mas .m,.c3-steps .pane .m,.c3-ch .media.m2,.c3-ch .media.m3,.c3-ch .media.m4,.c3-hs .m{
  display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:12px;align-items:stretch;
  background:var(--paper-2);border-radius:8px;padding:clamp(14px,1.6vw,22px);aspect-ratio:4/3;margin:0}
.c3-ch .media.m2,.c3-ch .media.m3,.c3-ch .media.m4{aspect-ratio:16/9;margin-top:32px}
.c3-alt .m figure,.c3-acc .bd .m figure,.c3-mas .m figure,.c3-steps .pane .m figure,.c3-ch .media figure,.c3-hs .m figure{
  grid-column:auto!important;min-height:0;height:100%;display:flex;flex-direction:column;align-items:stretch;max-width:none;transform:none}
.c3-alt .m img,.c3-acc .bd .m img,.c3-mas .m img,.c3-steps .pane .m img,.c3-ch .media.m2 img,.c3-ch .media.m3 img,.c3-ch .media.m4 img,.c3-hs .m img{
  flex:1;min-height:0;width:100%;height:100%;max-height:none;max-width:none;object-fit:contain;background:none;border-radius:4px;aspect-ratio:auto}
.c3-alt .m figcaption,.c3-acc .bd .m figcaption,.c3-mas .m figcaption,.c3-steps .pane .m figcaption,.c3-ch .media.m2 figcaption,.c3-ch .media.m3 figcaption,.c3-ch .media.m4 figcaption{
  flex:none;margin:10px 0 0;font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* alternating rows: equal halves, text top-aligned with the frame */
.c3-alt{gap:clamp(64px,9vh,104px)}
.c3-alt>article{grid-template-columns:1fr 1fr;align-items:center}

/* accordion body: text and frame side by side, same top */
.c3-acc .bd{grid-template-columns:56px 1fr 1fr;align-items:start}
.c3-acc .bd .m{padding-left:clamp(14px,1.6vw,22px)}
.c3-acc .bd>div:first-child{padding-right:clamp(16px,3vw,48px)}

/* step cards (Scrap League): a tidy 3 x 2 grid */
.c3-hs{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(40px,5vh,56px) clamp(20px,2.4vw,40px);overflow:visible;padding:0;cursor:auto;scroll-snap-type:none}
.c3-hs>article{width:auto;border-top:0;padding-top:0;gap:12px}
.c3-hs .m{margin-bottom:8px}
.c3-hs .when{margin-top:4px}

/* two-column story (Just the 2 of Us): rows, not masonry */
.c3-mas{columns:auto;display:grid;grid-template-columns:1fr 1fr;gap:clamp(48px,7vh,72px) clamp(24px,3vw,48px);align-items:start}
.c3-mas>article{margin:0}
.c3-mas .m{margin-bottom:8px}

/* stepper pane */
.c3-steps .pane{grid-template-columns:1fr 1fr;align-items:start}
.c3-steps .rail button{padding-right:16px}

/* calendar grid: equal cells */
.c3-cal img{aspect-ratio:4/3;object-fit:cover}
.c3-cal>article:first-child img{aspect-ratio:4/3}

@media (max-width:1000px){
  .c3-alt>article,.c3-acc .bd,.c3-steps .pane,.c3-steps .pane.on,.c3-mas{grid-template-columns:1fr}
  .c3-acc .bd>div:first-child{padding-right:0}
  .c3-acc .bd .m{padding-left:clamp(14px,1.6vw,22px);margin-top:20px}
  .c3-hs{grid-template-columns:1fr 1fr}
  .c3-n4{grid-template-columns:1fr 1fr}
}
@media (max-width:600px){ .c3-hs{grid-template-columns:1fr} }
/* one section rhythm for every block on these pages, with the same hairline between them */
.c3>section,.c3>section.cs-sec,.c3>section.sec{padding-block:clamp(64px,8vh,96px);border-top:0}
.c3>section+section{border-top:1px solid var(--line-l)}
.c3>section:first-child{padding-top:clamp(72px,9vh,104px)}
.c3 .stack-grid,.c3 .cs-two{row-gap:32px}
/* headings: everything starts on the same top line; a tall right column lets the title ride along */
.c3 .head,.c3 .cs-two,.c3 .stack-grid{align-items:start}
.c3 .head>div:first-child,.c3 .cs-two>div:first-child,.c3 .stack-grid>div:first-child{position:sticky;top:110px;align-self:start}
.c3 .head .sub{padding-bottom:0;padding-top:clamp(28px,2.6vw,40px)}
.c3 .head .h2,.c3 .cs-two h2,.c3 .stack-grid h2{margin-top:14px}
.c3-ov .lead{font-size:clamp(22px,2.1vw,32px);line-height:1.25;letter-spacing:-.03em;max-width:34ch;padding-top:clamp(28px,2.6vw,40px)}
.c3 .story .lead{font-size:clamp(22px,2.1vw,32px);line-height:1.25}
@media (max-width:1000px){ .c3 .head>div:first-child,.c3 .cs-two>div:first-child,.c3 .stack-grid>div:first-child{position:static} .c3 .head .sub,.c3-ov .lead{padding-top:0} }
.c3>section+section{border-top:1px solid var(--line-l)!important}
.c3-hs .m{padding:10px;aspect-ratio:4/3}
@media (max-width:1000px){ .c3 .road{grid-template-columns:1fr!important} }

/* ===== v8: justified image rows (no empty frames), no section hairlines ===== */
.c3>section+section{border-top:0!important}
.c3>section,.c3>section.cs-sec,.c3>section.sec{padding-block:clamp(56px,7vh,88px)}
.c3>section:first-child{padding-top:clamp(80px,10vh,112px)}
.c3>section:last-child{padding-bottom:clamp(80px,10vh,112px)}
.c3-alt .m,.c3-acc .bd .m,.c3-mas .m,.c3-steps .pane .m,.c3-ch .media.m2,.c3-ch .media.m3,.c3-ch .media.m4,.c3-hs .m{
  display:flex!important;gap:12px;align-items:flex-start;background:none;padding:0!important;aspect-ratio:auto!important;border-radius:0}
.c3-alt .m figure,.c3-acc .bd .m figure,.c3-mas .m figure,.c3-steps .pane .m figure,.c3-ch .media figure,.c3-hs .m figure{
  flex:var(--ar,1) 1 0;min-width:0;height:auto;display:block}
.c3-alt .m img,.c3-acc .bd .m img,.c3-mas .m img,.c3-steps .pane .m img,.c3-ch .media.m2 img,.c3-ch .media.m3 img,.c3-ch .media.m4 img,.c3-hs .m img{
  width:100%;height:auto;max-height:none;object-fit:initial;border-radius:6px;background:var(--paper-2)}
.c3-alt .m figcaption,.c3-acc .bd .m figcaption,.c3-mas .m figcaption,.c3-steps .pane .m figcaption,.c3-ch .media figcaption{white-space:normal;overflow:visible;margin-top:10px}
/* a single tall picture keeps a sensible height and sits at the start of its column */
.c3-alt .m figure:only-child,.c3-steps .pane .m figure:only-child,.c3-acc .bd .m figure:only-child,.c3-mas .m figure:only-child{flex:none;width:min(100%,calc(var(--ar) * 560px))}
.c3-alt>article:nth-child(odd) .m{justify-content:flex-start}
.c3-alt>article:nth-child(even) .m{justify-content:flex-end}
.c3-hs .m figure:only-child{flex:none;width:100%}
.c3-hs .m img{aspect-ratio:4/3;object-fit:cover;object-position:center top}
.c3 .hint,.c3 .head .sub .mono{white-space:nowrap}
.c3-hs .m.fit img{object-fit:contain;padding:12px;box-sizing:border-box}
.c3-ov>.lead{padding-top:0}
.c3-st .txt>article{min-height:56vh;justify-content:flex-start;padding:48px 0}
.c3-n4 b{white-space:nowrap}
