/* Case Studies, from the "Case Studies · Desktop" / "· Phone" boards.
   Loads after home.css and clinical-studies.css (hero layout, note, chips). */

/* ---------- Hero ---------- */

body .ivc-hero { overflow-x: clip; }
body .ivc-hero .ivc-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--iv-navy); }
body .ivc-hero h1 { margin-top: 14px; }

/* Subscribe: the page's Elementor form, laid out as email + button in one row */
body .ivc-sub { margin-top: 28px; padding: 20px; border-radius: 20px; background: var(--iv-white); border: 1px solid var(--iv-line); max-width: 520px; }
body .ivc-hero .ivc-sub-t { font-size: 16px; font-weight: 600; color: var(--iv-navy); }
body .ivc-sub .elementor { margin-top: 12px; }
body .ivc-sub .elementor-element.elementor-widget-form { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
body .ivc-sub .elementor-widget-form > .elementor-widget-container { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
body .ivc-sub .elementor-form-fields-wrapper { display: flex !important; flex-wrap: nowrap !important; gap: 10px !important; margin: 0 !important; align-items: stretch !important; }
body .ivc-sub .elementor-field-group { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
body .ivc-sub .elementor-field-type-email { flex: 1 1 auto !important; min-width: 0; }
body .ivc-sub .elementor-field-type-hidden { display: none !important; }
body .ivc-sub .elementor-field-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body .ivc-sub input.elementor-field {
	width: 100% !important; height: 48px !important; min-height: 48px !important; border-radius: 12px !important; border: 1px solid var(--iv-line) !important;
	background: #F6FAFD !important; padding: 0 14px !important; font: 15px var(--iv-font) !important; color: var(--iv-slate) !important; box-shadow: none !important;
}
body .ivc-sub input.elementor-field:focus { outline: none !important; border-color: var(--iv-navy) !important; background: var(--iv-white) !important; box-shadow: 0 0 0 4px rgba(37, 173, 227, .18) !important; }
body .ivc-sub .elementor-field-type-submit, body .ivc-sub .e-form__buttons { flex: 0 0 auto !important; width: auto !important; }
/* The form template's own custom CSS (Elementor post 4351, >=768px) pins the button with
   position: absolute; right: -90px for the old site's layout, which pushed it out of this card. */
body .ivc-sub button.elementor-button {
	display: inline-flex !important; position: static !important; right: auto !important; flex: 0 0 auto !important; align-items: center !important; justify-content: center !important; width: auto !important; white-space: nowrap !important; height: 48px !important; min-height: 48px !important;
	padding: 0 24px !important; border: 0 !important; border-radius: 16px !important; background: var(--iv-navy) !important; color: var(--iv-white) !important;
	font: 600 15px var(--iv-font) !important; text-transform: none !important; letter-spacing: normal !important; cursor: pointer !important;
	transition: background .2s ease, transform .2s var(--iv-ease), box-shadow .2s ease !important;
}
body .ivc-sub button.elementor-button:hover { background: var(--iv-navy-hover) !important; transform: translateY(-1px) !important; box-shadow: 0 8px 24px -8px rgba(0, 64, 110, .55) !important; }
body .ivc-sub button.elementor-button:focus-visible { outline: 3px solid var(--iv-accent) !important; outline-offset: 3px !important; }
body .ivc-sub .elementor-message { margin-top: 10px !important; font: 14px/1.5 var(--iv-font) !important; }

/* The device photo on a soft floor glow */
body .ivc-stage { position: relative; perspective: 1200px; display: flex; align-items: center; justify-content: center; }
body .ivc-halo { position: absolute; left: 50%; top: 46%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 999px; background: radial-gradient(circle, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%); animation: ivd-halo 1.2s 1.4s ease both; }
body .ivc-floor { position: absolute; left: 50%; bottom: 46px; width: 300px; height: 26px; margin-left: -150px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 64, 110, .28), rgba(0, 64, 110, 0) 70%); animation: ivd-floor 1.2s 1.3s ease both, ivc-floor 9s 2.4s ease-in-out infinite; }
body .ivc-ripple { position: absolute; left: 50%; bottom: 46px; width: 300px; height: 26px; margin-left: -150px; border-radius: 50%; border: 1.5px solid var(--iv-accent); opacity: 0; animation: ivd-ripple 3.5s 2.1s cubic-bezier(.2, .6, .2, 1) infinite; }
@keyframes ivd-halo { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes ivd-floor { from { opacity: 0; transform: scaleX(.3); } to { opacity: 1; transform: none; } }
@keyframes ivd-ripple { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes ivc-floor { 0%, 50%, 100% { transform: scaleX(1); } 25%, 75% { transform: scaleX(.86); opacity: .8; } }

/* ---------- Case grid ---------- */

body .ivc-cases { background: var(--iv-white); }
body .ivc-inner { padding-top: 96px; padding-bottom: 112px; }
body .ivc-filter-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
body .ivc h2 { font-size: 32px; line-height: 1.2; }
body .ivc .ivc-clear, body .ivc .ivc-clear:focus { min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--iv-line-2); background: var(--iv-white); color: var(--iv-slate); font: 600 14px var(--iv-font); text-transform: none; letter-spacing: normal; cursor: pointer; }
body .ivc .ivc-clear:hover { border-color: var(--iv-navy); color: var(--iv-navy); background: var(--iv-white); }
body .ivc .ivc-clear[hidden] { display: none; }
body .ivc-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
body .ivc .ivc-tagb, body .ivc .ivc-tagb:focus { border: 1px solid var(--iv-line); background: var(--iv-white); color: var(--iv-slate); border-radius: 999px; padding: 0 14px; min-height: 40px; font: 500 14px var(--iv-font); text-transform: none; letter-spacing: normal; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
body .ivc .ivc-tagb:hover { border-color: var(--iv-navy); color: var(--iv-navy); background: var(--iv-white); }
body .ivc .ivc-tagb.is-on, body .ivc .ivc-tagb.is-on:is(:hover, :focus) { background: var(--iv-navy); border-color: var(--iv-navy); color: var(--iv-white); }
body .ivc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
body .ivc-card { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 24px; background: var(--iv-white); border: 1px solid var(--iv-line); transition: border-color .3s ease, box-shadow .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1); }
body .ivc-card[hidden] { display: none; }
body .ivc-card:hover { border-color: var(--iv-line-2); box-shadow: 0 28px 56px -34px rgba(0, 64, 110, .5); transform: translateY(-4px); }
body .ivc-n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--iv-tint); color: var(--iv-navy); font-weight: 700; font-size: 15px; transition: background .3s ease, color .3s ease; }
body .ivc-card:hover .ivc-n { background: var(--iv-navy); color: var(--iv-white); }
body .ivc-card h3 { margin-top: 18px; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: normal; }
body .ivc .ivc-card h3 a { color: var(--iv-navy); }
body .ivc .ivc-d { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--iv-text); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
body .ivc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
body .ivc .ivc-more { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--iv-navy); }
body .ivc-more svg { transition: transform .25s ease; }
body .ivc-card:hover .ivc-more svg { transform: translateX(4px); }
body .ivc-empty { margin-top: 20px; padding: 40px; text-align: center; border: 1px dashed var(--iv-line-2); border-radius: 20px; color: var(--iv-text); }
body .ivc-empty[hidden] { display: none; }

/* ---------- Breakpoints ---------- */

@media (max-width: 1200px) {
}
@media (max-width: 1100px) {
	body .ivc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
}
@media (max-width: 640px) {
	body .ivc-floor, body .ivc-ripple { bottom: 24px; width: 220px; margin-left: -110px; }
	body .ivc-halo { width: 280px; height: 280px; margin: -140px 0 0 -140px; }
	body .ivc-grid { grid-template-columns: 1fr; }
	body .ivc-sub .elementor-form-fields-wrapper { flex-direction: column !important; }
	body .ivc-sub button.elementor-button { width: 100% !important; }
	body .ivc-inner { padding-top: 56px; padding-bottom: 64px; }
	body .ivc h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
	body .ivc-hero *, body .ivc * { animation: none !important; transition: none !important; }
}

/* Hero, after the About stage but split: light-blue stage (fades into the page with the shared
   hero fade), text left, the device photo on the right. */
body .ivc-hero .ivs-hero-bg { background: radial-gradient(60% 70% at 72% 50%, #CFE6FA 0%, #B4D9F6 45%, #DCEEFC 100%); }
body .ivc-hero .ivs-hero-bg img { opacity: .3; }
body .ivc-hero .ivc-photo { position: relative; z-index: 1; display: block; width: min(555px, 100%); height: auto; max-width: none; border-radius: 0; }
body .ivc-halo { background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 70%); }
