/* Original Gymful case-family layout. Content/media originate in the imported
   /cases pages; this is not an Osmo component. All rules stay body scoped. */
.gf-case-v3 { color: var(--gf-page-text); background: var(--gf-page-bg); }
.gf-case-v3 :is(h1,h2,h3,p,figure) { margin: 0; }
.gf-case-v3 img { display: block; max-width: 100%; }
.gf-case-v3 .gf-eyebrow { color: inherit; }
.gf-cv3-hero,
.gf-cv3-detail-hero { padding-top: clamp(9rem, 13vw, 13rem); padding-bottom: clamp(3rem, 6vw, 6rem); }
.gf-cv3-hero h1 { max-width: 15ch; margin-top: clamp(2rem, 6vw, 5rem); font-size: clamp(4.4rem, 10.8vw, 10.5rem); line-height: .86; }
.gf-cv3-hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-top: clamp(2.5rem, 5vw, 5rem); }
.gf-cv3-hero-bottom > p { max-width: 40rem; font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.45; }
.gf-cv3-text-link,
.gf-cv3-back { display: inline-flex; align-items: center; gap: .75rem; color: inherit; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.gf-cv3-text-link svg,
.gf-cv3-back svg { width: 1.3rem; height: 1.3rem; transition: transform .2s ease; }
.gf-cv3-text-link:hover svg,
.gf-cv3-text-link:focus-visible svg { transform: translateX(.2rem); }
.gf-cv3-hero-bottom .gf-cv3-text-link:hover svg,
.gf-cv3-hero-bottom .gf-cv3-text-link:focus-visible svg { transform: translateY(.2rem); }
.gf-cv3-projects { background: var(--gf-page-soft); }
.gf-cv3-section-top { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.gf-cv3-section-top > p:last-child { max-width: 25rem; color: var(--gf-page-subtle); }
.gf-cv3-section-top h2 { font-size: clamp(2.5rem, 5vw, 5rem); }
.gf-cv3-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(2rem, 4vw, 4rem) clamp(1rem, 2vw, 2rem); }
.gf-cv3-card { min-width: 0; }
.gf-cv3-card--feature { grid-column: span 2; }
.gf-cv3-card-link { display: block; color: inherit; text-decoration: none; }
.gf-cv3-card-art { aspect-ratio: 1.45; overflow: hidden; background: var(--gf-page-raised); }
.gf-cv3-card--feature .gf-cv3-card-art { aspect-ratio: 2.2; }
.gf-cv3-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--gf-ease); }
.gf-cv3-card-link:hover .gf-cv3-card-art img,
.gf-cv3-card-link:focus-visible .gf-cv3-card-art img { transform: scale(1.035); }
.gf-cv3-card-info { display: grid; grid-template-columns: 2rem minmax(0,1fr) 3rem; gap: clamp(.6rem, 2vw, 1.5rem); align-items: start; padding-top: 1.35rem; border-top: 1px solid var(--gf-page-line); margin-top: 1rem; }
.gf-cv3-index,
.gf-cv3-kicker { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.gf-cv3-kicker { color: var(--gf-page-subtle); }
.gf-cv3-card-info h2 { margin-top: .55rem; font-size: clamp(2.3rem, 4.3vw, 4.5rem); line-height: .95; }
.gf-cv3-card-lead { max-width: 32rem; margin-top: .9rem !important; color: var(--gf-page-subtle); font-size: 1rem; line-height: 1.5; }
.gf-cv3-card-arrow { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--gf-page-line); border-radius: 50%; }
.gf-cv3-card-arrow svg { width: 1.3rem; height: 1.3rem; }
.gf-cv3-cta-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr); align-items: end; gap: clamp(2rem, 6vw, 7rem); }
.gf-cv3-cta h2 { margin-top: 1.5rem; font-size: clamp(3.3rem, 6.8vw, 7rem); line-height: .9; }
.gf-cv3-cta-inner > div:last-child { max-width: 31rem; }
.gf-cv3-cta-inner > div:last-child p { margin-bottom: 2rem; color: #c7cfc3; line-height: 1.6; }
.gf-cv3-back { margin-bottom: clamp(3rem, 6vw, 6rem); }
.gf-cv3-detail-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.55fr); align-items: end; gap: 2rem; }
.gf-cv3-detail-heading .gf-eyebrow { grid-column: 1 / -1; }
.gf-cv3-detail-heading h1 { font-size: clamp(4.2rem, 10vw, 10rem); line-height: .86; }
.gf-cv3-detail-heading > p:last-child { max-width: 29rem; font-size: clamp(1.2rem, 1.9vw, 1.7rem); line-height: 1.45; }
.gf-cv3-cover { position: relative; width: calc(100% - 2 * var(--gf-gutter)); max-width: calc(1600px - 2 * var(--gf-gutter)); height: clamp(20rem, 53vw, 48rem); margin-inline: auto; background: var(--gf-page-raised); overflow: hidden; }
.gf-cv3-cover img { width: 100%; height: 100%; object-fit: cover; }
.gf-cv3-cover > span { position: absolute; bottom: 1.25rem; left: 1.25rem; padding: .5rem .75rem; background: rgb(10 16 10 / 76%); color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.gf-cv3-context-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); gap: clamp(2rem, 6vw, 7rem); }
.gf-cv3-context h2 { margin-top: 1.5rem; font-size: clamp(3.5rem, 7vw, 7rem); }
.gf-cv3-context-grid > p { max-width: 45rem; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.55; }
.gf-cv3-stories > .gf-wrap > .gf-eyebrow { margin-bottom: clamp(3rem, 5vw, 5rem); }
.gf-cv3-story { display: grid; grid-template-columns: minmax(0,.5fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 6rem); padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--gf-page-line); }
.gf-cv3-story-label { display: flex; gap: 1.5rem; text-transform: uppercase; font-size: .8rem; letter-spacing: .07em; }
.gf-cv3-story-label span { color: var(--gf-acid); }
.gf-cv3-story h2 { max-width: 15ch; font-size: clamp(2.7rem, 5.5vw, 5.5rem); }
.gf-cv3-story > div:last-child > p { max-width: 43rem; margin-top: 1.5rem; color: #c7cfc3; line-height: 1.65; }
.gf-cv3-gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.75rem, 2vw, 1.5rem); }
.gf-cv3-gallery figure { min-width: 0; background: var(--gf-page-raised); aspect-ratio: 1.22; overflow: hidden; }
.gf-cv3-gallery img { width: 100%; height: 100%; object-fit: cover; }
.gf-cv3-film { --gf-video-aspect: 16 / 9; max-width: 1100px; margin-inline: auto; }
.gf-cv3-film-note { margin-top: 1rem !important; color: #c7cfc3; font-size: .85rem; text-align: center; }
.gf-cv3-related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1rem, 2vw, 2rem); }
.gf-cv3-related .gf-cv3-text-link { margin-top: clamp(3rem, 5vw, 5rem); }
html[data-theme="dark"] .gf-cv3-projects { background: var(--gf-page-soft); }
html[data-theme="dark"] .gf-cv3-card-art,
html[data-theme="dark"] .gf-cv3-cover,
html[data-theme="dark"] .gf-cv3-gallery figure { background: var(--gf-page-raised); }
@media (max-width: 760px) {
  .gf-cv3-hero-bottom,
  .gf-cv3-section-top { align-items: start; flex-direction: column; }
  .gf-cv3-detail-heading,
  .gf-cv3-context-grid,
  .gf-cv3-story,
  .gf-cv3-cta-inner { grid-template-columns: 1fr; }
  .gf-cv3-detail-heading .gf-eyebrow { grid-column: auto; }
  .gf-cv3-grid,
  .gf-cv3-related-grid { grid-template-columns: 1fr; }
  .gf-cv3-card--feature { grid-column: auto; }
  .gf-cv3-card--feature .gf-cv3-card-art { aspect-ratio: 1.45; }
  .gf-cv3-cover { height: clamp(17rem, 75vw, 36rem); }
  .gf-cv3-detail-hero { padding-bottom: 3rem; }
}
@media (max-width: 480px) {
  .gf-cv3-hero h1 { font-size: clamp(3.45rem, 15.5vw, 5rem); }
  .gf-cv3-detail-heading h1 { font-size: clamp(3.55rem, 14vw, 5rem); }
  .gf-cv3-card-info { grid-template-columns: 1.5rem minmax(0,1fr) 2.5rem; gap: .6rem; }
  .gf-cv3-card-arrow { width: 2.5rem; height: 2.5rem; }
  .gf-cv3-gallery-grid { grid-template-columns: 1fr; }
  .gf-cv3-cover { width: 100%; height: 18rem; }
  .gf-cv3-cover > span { bottom: .75rem; left: .75rem; }
  .gf-cv3-cta h2 { font-size: clamp(3rem, 12.5vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .gf-case-v3 :is(.gf-cv3-card-art img,.gf-cv3-text-link svg,.gf-cv3-back svg) { transition: none !important; transform: none !important; }
}
