/* Avoora's case-study structure over the Projects starfield. */
body:has(.fwd-case) { background: #000; }
.fwd-case { position: relative; background: transparent; color: #efefef; padding: calc(var(--header-height) + 54px) max(20px, 2.78vw) 80px; font-family: var(--font-roboto), Arial, sans-serif; }
.fwd-case-inner { max-width: 1440px; margin: auto; }
.fwd-case-topline { display: flex; justify-content: space-between; align-items: center; gap: 24px; color: #aaa; font-size: 14px; }
.fwd-case-topline p span { margin: 0 10px; color: #aaa; }
.fwd-case-back { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; color: #efefef; }
.fwd-case a:focus-visible { outline: 2px solid #ff4e00; outline-offset: 6px; }
.fwd-case a:hover { color: #ff4e00; }
.fwd-case-heading { position: static; margin: 44px 0 48px; }
.fwd-case-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.fwd-case-eyebrow::before { content: ''; width: 7px; height: 7px; background: #ff4e00; }
.fwd-case-heading h1 { margin-top: 16px; font-size: clamp(52px, 6.5vw, 100px); line-height: 1.05; font-weight: 500; letter-spacing: -.055em; text-wrap: balance; }
.fwd-case-hero { color: #342326; background: #eac4bb; padding: clamp(24px, 5vw, 76px); border-radius: 8px; overflow: hidden; }
.fwd-case-machine-monitor { background: #202b29; color: #e7eadb; }
.fwd-case-hero svg { display: block; width: 100%; height: auto; }
.fwd-case-hero:has(> img) { padding: 0; }
.fwd-case-dental-os { background: #0b5344; color: #e7f2ec; }
.fwd-case-event-os { background: #f7f4ed; color: #453b2e; }
.fwd-case-hero > img { display: block; width: 100%; height: auto; }
.fwd-case-hero:has(> img) figcaption { margin: 0; padding: 20px 24px; }
.fwd-case-hero figcaption { margin-top: 30px; font-size: 12px; opacity: .7; letter-spacing: .02em; }
.fwd-case-gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; height: clamp(400px, 43vw, 620px); padding: clamp(16px, 2vw, 28px); background: rgba(8, 8, 8, .48); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; }
.fwd-case-gallery .fwd-case-hero { display: flex; flex-direction: column; padding: 0; min-height: 0; background: transparent; border: 0; color: #efefef; }
.fwd-case-gallery .fwd-case-hero:first-child { grid-row: span 2; }
.fwd-case-gallery a, .fwd-case-preview-pending { display: block; flex: 1; min-height: 0; overflow: hidden; }
.fwd-case-preview-pending { display: grid; place-items: center; background: rgba(255, 255, 255, .025); border: 1px dashed rgba(255, 255, 255, .2); border-radius: 8px; color: #aaa; font-size: 14px; }
.fwd-case-gallery a:focus-visible { outline-offset: -4px; }
.fwd-case-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 8px; transition: transform .45s ease; }
@media (hover: hover) { .fwd-case-gallery a:hover img { transform: scale(1.08); } }
.fwd-case-gallery .fwd-case-hero:first-child img { object-position: 65% center; }
.fwd-case-gallery .fwd-case-hero figcaption { margin: 0; padding: 14px 18px; opacity: 1; font-size: 14px; flex-shrink: 0; }
.fwd-case-gallery-note { margin-top: 14px; color: #aaa; font-size: 12px; }
.fwd-case-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: clamp(32px, 4vw, 64px); margin-top: 32px; }
.fwd-case-highlight { padding: clamp(28px, 3.2vw, 48px); border: 1px solid #444; border-radius: 5px; }
.fwd-case-highlight p { font-size: clamp(28px, 3.2vw, 48px); line-height: 1.2; font-weight: 500; letter-spacing: -.035em; max-width: 34ch; }
.fwd-case-facts { margin-top: 24px; padding: 14px clamp(24px, 3vw, 48px); background: #171717ed; color: #efefef; border-radius: 5px; }
.fwd-case-facts dl > div, .fwd-case-specs > div { display: grid; grid-template-columns: 35% 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid #595959; }
.fwd-case-facts dl > div:last-child, .fwd-case-specs > div:last-child { border-bottom: 0; }
.fwd-case-facts dt, .fwd-case-facts dd { font-size: clamp(20px, 2vw, 28px); font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }
.fwd-case-section { margin-top: clamp(64px, 7vw, 112px); scroll-margin-top: calc(var(--header-height) + 32px); }
.fwd-case h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.1; font-weight: 500; letter-spacing: -.045em; }
.fwd-case-copy { max-width: 78ch; margin-top: 32px; }
.fwd-case-copy p { font-size: clamp(18px, 1.7vw, 25px); line-height: 1.55; letter-spacing: -.015em; }
.fwd-case-copy p + p { margin-top: 24px; }
.fwd-case-copy a { color: #ff4e00; text-decoration: underline; text-underline-offset: 4px; }
.fwd-case-specs { margin-top: 28px; border-top: 1px solid #444; }
.fwd-case-specs > div { padding: 24px 0; border-color: #444; font-size: clamp(17px, 1.65vw, 24px); line-height: 1.4; }
.fwd-case-specs dt { color: #aaa; }
.fwd-case-specs dd { font-weight: 500; }
.fwd-case-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; list-style: none; padding: 0; margin: 32px 0 0; }
.fwd-case-features li { display: flex; gap: 20px; border-top: 1px solid #444; padding: 32px 0; }
.fwd-case-number { color: #ff4e00; font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 5px; }
.fwd-case h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; font-weight: 500; letter-spacing: -.025em; }
.fwd-case-features p, .fwd-case-architecture p { color: #aaa; font-size: 18px; line-height: 1.45; margin-top: 14px; }
.fwd-case-intro { color: #aaa; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; max-width: 65ch; margin-top: 24px; }
.fwd-case-architecture { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; margin: 32px 0 0; padding: clamp(24px, 3vw, 44px); border: 1px solid #444; border-radius: 5px; background: #18241eed; }
.fwd-case-architecture li { position: relative; min-width: 0; padding: 12px 0; }
.fwd-case-architecture li + li::before { content: '→'; position: absolute; top: 45%; left: -30px; color: #87a58a; font-size: 24px; }
.fwd-case-architecture h3 { margin-top: 24px; }
.fwd-case-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: clamp(20px, 3vw, 44px); border: 1px solid #444; border-radius: 5px; margin-top: 32px; }
.fwd-case-metric { padding: clamp(24px, 3vw, 44px); background: #1c1c1ced; }
.fwd-case-value { font-size: clamp(56px, 6vw, 90px); line-height: 1; letter-spacing: -.04em; }
.fwd-case-pending { color: #aaa; font-size: 14px; margin-top: 12px; }
.fwd-case-metric h3 { border-top: 1px solid #444; margin-top: 32px; padding-top: 28px; }
.fwd-case-diagram { display: block; margin-top: 32px; border: 1px solid #444; border-radius: 5px; overflow: hidden; background: #101922; }
.fwd-case-diagram img { display: block; width: 100%; height: auto; }
.fwd-case-diagram > span { display: block; padding: 20px 24px; border-top: 1px solid #444; font-size: 17px; }
.fwd-case-diagram small { color: #aaa; font-size: 12px; }
.fwd-case-expected { padding: clamp(20px, 2vw, 30px); }
.fwd-case-expected .fwd-case-benefit { color: #ff4e00; font-size: clamp(27px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.035em; }
.fwd-case-expected h3 { font-size: 23px; margin-top: 24px; padding-top: 24px; }
.fwd-case-expected h3 + p, .fwd-case-measure { margin-top: 18px; font-size: 17px; line-height: 1.5; color: #aaa; }
.fwd-case-measure strong { display: block; color: #efefef; font-size: 13px; margin-bottom: 7px; font-weight: 500; }
.fwd-case-related { position: sticky; top: calc(var(--header-height) + 32px); }
.fwd-case-related h2 { font-size: clamp(26px, 2.5vw, 36px); }
.fwd-case-related a { display: block; margin-top: 24px; padding: 16px; border: 1px solid #444; border-radius: 5px; background: #171717ed; }
.fwd-case-related-visual { display: block; overflow: hidden; border-radius: 4px; }
.fwd-case-related img { display: block; width: 100%; height: auto; transition: transform .45s ease; }
@media (hover: hover) { .fwd-case-related a:hover img { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .fwd-case-gallery img, .fwd-case-related img { transition: none; } }
.fwd-case-related-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-top: 24px; }
.fwd-case-related-heading h3 { font-size: clamp(22px, 1.8vw, 28px); }
.fwd-case-related-heading > span { font-size: 26px; line-height: 1; }
.fwd-case-related-meta { margin-top: 10px; color: #aaa; font-size: 14px; }
.fwd-case-related-copy { margin-top: 20px; padding-top: 20px; border-top: 1px solid #444; color: #aaa; font-size: 17px; line-height: 1.5; }
@media (max-width: 1000px) {
  .fwd-case-body { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .fwd-case-related { position: static; order: -1; }
  .fwd-case-related a { display: grid; grid-template-columns: clamp(100px, 20vw, 180px) minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 16px; }
  .fwd-case-related-heading { margin-top: 0; }
  .fwd-case-related-copy { display: none; }
}
@media (max-width: 800px) {
  .fwd-case-gallery { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; gap: 16px; }
  .fwd-case-gallery .fwd-case-hero:first-child { grid-row: auto; }
  .fwd-case-gallery a, .fwd-case-preview-pending { flex: none; aspect-ratio: 16 / 10; }
  .fwd-case-gallery .fwd-case-hero:first-child a { aspect-ratio: 4 / 3; }
  .fwd-case-gallery .fwd-case-hero figcaption { font-size: 13px; }
  .fwd-case { padding-top: calc(var(--header-height) + 28px); padding-bottom: 40px; }
  .fwd-case-topline { align-items: flex-start; gap: 12px; font-size: 12px; }
  .fwd-case-topline p { padding-top: 14px; text-align: right; }
  .fwd-case-topline p span { margin: 0 3px; }
  .fwd-case-heading { margin: 32px 0; }
  .fwd-case-hero { padding: 24px 12px; }
  .fwd-case-hero figcaption { margin-top: 24px; padding: 0 12px; font-size: 10px; }
  .fwd-case-facts dl > div, .fwd-case-specs > div { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .fwd-case-facts dt { font-size: 14px; color: #b5b5b5; }
  .fwd-case-facts dd { font-size: 20px; }
  .fwd-case-specs dt { font-size: 14px; }
  .fwd-case-features { grid-template-columns: 1fr; }
  .fwd-case-architecture { grid-template-columns: 1fr; gap: 40px; }
  .fwd-case-architecture li + li::before { content: '↓'; top: -34px; left: 0; }
  .fwd-case-architecture h3 { margin-top: 16px; }
  .fwd-case-outcomes { grid-template-columns: 1fr; gap: 20px; }
}
