/* Web Developer case studies: shared polish layer (skip link, wider column, motion). */
.proj, :root { --rail: min(1320px, 92vw); }
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 100000; padding: 10px 16px; border-radius: 12px; background: #14232f; color: #fff; font: 600 .9rem/1.2 "Montserrat", sans-serif; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 16px; outline: 3px solid #8fcdee; outline-offset: 2px; }
.mo { opacity: 0; transform: translateY(26px); }
.mo.mo-in { opacity: 1; transform: none; transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); }
.mo-progress { position: fixed; left: 0; top: 0; z-index: 99990; width: 100%; height: 3px; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #398fba, #ff6c63); pointer-events: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature, .timeline__step { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
  .feature:hover, .timeline__step:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20,40,60,.10); }
}
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }
.story-block__body { max-width: 84ch; font-size: 1.04rem; line-height: 1.75; }
/* Story blocks: breathing room so the number and text never touch the block edge */
.story-block { padding-inline: clamp(24px, 4vw, 64px); padding-block: clamp(28px, 4vw, 56px); }

/* Bands: inner padding so content never sits on the band edge */
.proj__band-inner { padding-inline: clamp(24px, 4vw, 64px); box-sizing: border-box; }
.proj__band { padding-block: clamp(8px, 2vw, 24px); }

/* Development process: four step cards across instead of a thin list with an empty right side */
@media (min-width: 900px) {
  .timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); position: relative; }
  .timeline::before, .timeline::after { display: none; }
  .timeline__step { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: clamp(20px, 2.4vw, 32px); background: var(--card, #fff); border: 1px solid rgba(20, 40, 60, .08); border-radius: 20px; box-shadow: 0 10px 26px rgba(20, 40, 60, .06); position: relative; }
  .timeline__step:not(:last-child)::after { content: ""; position: absolute; top: calc(clamp(20px, 2.4vw, 32px) + 27px); left: calc(100% + 2px); width: calc(clamp(16px, 2vw, 28px) - 4px); height: 2px; background: var(--brand, #398fba); opacity: .5; }
}

/* Story blocks are section bands, not cards: no lift or shadow, ever */
.story-block, .story-block:hover { transform: none !important; box-shadow: none !important; }

/* Case-study building blocks used across the dev pages */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin: 28px 0 0; padding: 0; border-top: 1px solid rgba(20,40,60,.12); }
.glance > div { padding: 18px 20px 0 0; margin-right: 20px; border-right: 1px solid rgba(20,40,60,.1); }
.glance > div:last-child { border-right: 0; margin-right: 0; }
.glance dt { margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand, #398fba); }
.glance dd { margin: 0; font-size: 1rem; line-height: 1.45; font-weight: 600; color: var(--ink-900, #1f1f1f); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.duo__card { padding: clamp(22px, 3vw, 36px); background: var(--card, #fff); border: 1px solid rgba(20,40,60,.08); border-radius: 20px; }
.duo__card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.duo__card p { margin: 0; line-height: 1.7; color: var(--muted, #66707a); }
.shots { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.shots--stack { grid-template-columns: minmax(0, 1fr); }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(20,40,60,.1); box-shadow: 0 18px 40px rgba(20,40,60,.12); background: #fff; }
.shots figcaption { margin-top: 14px; max-width: 70ch; font-size: .92rem; line-height: 1.6; color: var(--muted, #66707a); }
.shots figcaption strong { color: var(--ink-900, #1f1f1f); }
.shots__side { position: sticky; top: 110px; }
@media (max-width: 860px) { .shots { grid-template-columns: minmax(0, 1fr); } .shots__side { position: static; } }

/* A grid with a single card should fill the row, never leave the right half empty */
.proj__grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.proj__grid > .card:only-child { max-width: none; padding: clamp(24px, 3.4vw, 44px); }
.proj__grid > .card:only-child .card__body { max-width: 80ch; font-size: 1.05rem; line-height: 1.75; }

.shots--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .shots--pair { grid-template-columns: minmax(0, 1fr); } }
