.iv-page {
  --case-accent: #d96b73;
  --case-accent-soft: rgba(217, 107, 115, 0.1);
  --case-line: rgba(157, 175, 193, 0.2);
  --iv-navy: #132233;
  --iv-blue: #2d5876;
  --iv-warm: #f4eee7;
  --iv-red-soft: rgba(217, 107, 115, 0.12);
  --iv-teal-soft: rgba(105, 180, 174, 0.1);
  background: #0d151d;
}

.iv-page .case-hero::before {
  width: 760px;
  height: 760px;
  right: -310px;
  top: -70px;
  background: radial-gradient(circle, rgba(217, 107, 115, 0.12), rgba(75, 142, 178, 0.05) 42%, transparent 70%);
}

.iv-page .case-title { max-width: 720px; font-size: clamp(2.18rem, 4.55vw, 3.8rem); }
.iv-page .case-actions .btn-primary { background: var(--case-accent); }
.iv-page .case-actions .btn-primary:hover { background: #ef8c92; }
.iv-page .case-hero-visual { min-height: 490px; }

.iv-hero-visual::after {
  content: '';
  position: absolute;
  inset: 7% 4% 8% 9%;
  border: 1px solid rgba(217, 107, 115, 0.16);
  border-radius: 24px;
  transform: rotate(-4deg);
  pointer-events: none;
}

.iv-hero-shot {
  width: min(100%, 550px);
  aspect-ratio: 16 / 10;
  padding: 9px;
  border-radius: 16px;
  transform: rotate(1.2deg);
  background: #f3efe9;
  border-color: rgba(217, 107, 115, 0.35);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5), 0 0 70px rgba(217, 107, 115, 0.12);
}

.iv-hero-shot:hover { transform: translateY(-7px) rotate(0deg); }
.iv-hero-shot img { border-radius: 9px; object-fit: cover; }
.iv-page .case-hero-card-label { left: -16px; bottom: 29px; background: rgba(19, 34, 51, 0.94); border-color: rgba(217, 107, 115, 0.35); }

.iv-control-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(90deg, rgba(217, 107, 115, 0.08), rgba(255, 255, 255, 0.015), rgba(105, 180, 174, 0.06));
}

.iv-control-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.iv-control-grid > div { display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; padding: 21px 20px; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.iv-control-grid > div:first-child { padding-left: 0; }
.iv-control-grid > div:last-child { border-right: 0; }
.iv-control-grid span { grid-row: span 2; color: var(--case-accent); font-family: var(--font-mono); font-size: 0.66rem; padding-top: 2px; }
.iv-control-grid strong { font-size: 0.78rem; line-height: 1.4; }
.iv-control-grid small { margin-top: 4px; color: var(--text-dim); font-size: 0.67rem; line-height: 1.45; }

.iv-heading-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: end; width: 100%; max-width: none; }
.iv-heading-split > p { max-width: none; margin: 0 0 3px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.75; }
.iv-dual-section { background: linear-gradient(180deg, rgba(244, 238, 231, 0.035), transparent 42%); }
.iv-dual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 42px; }
.iv-side-card { position: relative; min-height: 330px; padding: 27px 28px 25px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; }
.iv-side-card::after { content: ''; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -100px; border-radius: 50%; opacity: 0.7; pointer-events: none; }
.iv-side-card--public { background: linear-gradient(145deg, rgba(244, 238, 231, 0.075), rgba(255, 255, 255, 0.012)); }
.iv-side-card--public::after { background: radial-gradient(circle, rgba(217, 107, 115, 0.22), transparent 68%); }
.iv-side-card--admin { background: linear-gradient(145deg, rgba(105, 180, 174, 0.08), rgba(255, 255, 255, 0.012)); }
.iv-side-card--admin::after { background: radial-gradient(circle, rgba(105, 180, 174, 0.18), transparent 68%); }
.iv-side-card:hover { transform: translateY(-5px); border-color: rgba(217, 107, 115, 0.38); box-shadow: 0 22px 55px rgba(0, 0, 0, 0.2); }
.iv-side-card > * { position: relative; z-index: 1; }
.iv-side-card__head { display: flex; align-items: center; justify-content: space-between; color: var(--case-accent); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; }
.iv-side-card__mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; font-size: 0.95rem; }
.iv-side-card h3 { margin: 42px 0 9px; font-size: 1.35rem; }
.iv-side-card p { max-width: 510px; color: var(--text-muted); font-size: 0.82rem; line-height: 1.65; }
.iv-side-card ul { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.iv-side-card li { display: flex; gap: 9px; color: var(--text-muted); font-size: 0.75rem; line-height: 1.45; }
.iv-side-card li::before { content: '—'; color: var(--case-accent); }

.iv-manage-section { background: var(--iv-warm); color: var(--iv-navy); }
.iv-manage-section .section-label { color: #a94e57; }
.iv-manage-section .section-title { color: var(--iv-navy); }
.iv-manage-section .section-title .accent { color: #b8515b; }
.iv-manage-section .case-section-heading > p { color: #5f6a71; }
.iv-outcomes { grid-template-columns: repeat(3, 1fr); }
.iv-outcomes .case-outcome { border-color: rgba(19, 34, 51, 0.12); background: rgba(255, 255, 255, 0.46); }
.iv-outcomes .case-outcome:hover { border-color: rgba(169, 78, 87, 0.38); background: rgba(255, 255, 255, 0.78); }
.iv-outcomes .case-outcome h3 { color: var(--iv-navy); }
.iv-outcomes .case-outcome p { color: #647078; }
.iv-outcomes .case-outcome-icon { color: #b8515b; }

.iv-gallery-section { background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%); }
.iv-centered-heading { max-width: 720px; margin-inline: auto; text-align: center; }
.iv-centered-heading p { margin-inline: auto; }
.iv-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1180px; margin-inline: auto; }
.iv-screen-card--wide { grid-column: auto; }
.iv-screen-visual { aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 20%, rgba(217, 107, 115, 0.14), transparent 58%), #101923; }
.iv-screen-visual img { object-fit: contain; }
.iv-screen-card:hover { border-color: rgba(217, 107, 115, 0.4); }

.iv-publish-section { background: linear-gradient(180deg, rgba(105, 180, 174, 0.04), transparent 42%); }
.iv-publish-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--case-line); }
.iv-publish-flow article { position: relative; min-height: 190px; padding: 23px 18px 20px; border-right: 1px solid var(--case-line); transition: background 0.3s ease, transform 0.3s ease; }
.iv-publish-flow article:last-child { border-right: 0; }
.iv-publish-flow article::before { content: ''; position: absolute; top: -4px; left: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--case-accent); box-shadow: 0 0 15px rgba(217, 107, 115, 0.65); }
.iv-publish-flow article:hover { background: rgba(217, 107, 115, 0.06); transform: translateY(-3px); }
.iv-publish-flow article > span { color: var(--case-accent); font-family: var(--font-mono); font-size: 0.66rem; }
.iv-publish-flow h3 { margin: 28px 0 8px; font-size: 0.92rem; }
.iv-publish-flow p { color: var(--text-muted); font-size: 0.74rem; line-height: 1.58; }

.iv-seo-section { background: var(--iv-navy); color: #f2f4f3; }
.iv-seo-section .section-title { color: #f2f4f3; }
.iv-seo-section .feature-intro { color: #afbdc6; }
.iv-seo-section .section-label { color: #ec9298; }
.iv-seo-layout { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 78px; align-items: center; }
.iv-seo-note { display: grid; grid-template-columns: 48px 1fr; gap: 14px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.iv-seo-note > span { color: #ec9298; font-family: var(--font-mono); font-size: 0.73rem; letter-spacing: 0.1em; padding-top: 3px; }
.iv-seo-note p { color: #d2dbdf; font-size: 0.78rem; line-height: 1.6; }
.iv-seo-map { border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.035); }
.iv-seo-map > div { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 22px; padding: 17px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); transition: background 0.25s ease; }
.iv-seo-map > div:last-child { border-bottom: 0; }
.iv-seo-map > div:not(.iv-seo-map__head):hover { background: rgba(217, 107, 115, 0.1); }
.iv-seo-map__head { color: #ec9298; background: rgba(217, 107, 115, 0.08); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); font-size: 0.62rem; }
.iv-seo-map b { color: #fff; font-size: 0.78rem; font-weight: 600; }
.iv-seo-map span { color: #aebdc4; font-size: 0.74rem; line-height: 1.5; }

.iv-leads-section { background: linear-gradient(180deg, transparent, rgba(244, 238, 231, 0.035)); }
.iv-lead-flow {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-left: 0;
}
.iv-lead-flow > div {
  position: relative;
  display: flex;
  min-height: 158px;
  flex-direction: column;
  padding: 18px 18px 17px;
  overflow: hidden;
  border: 1px solid rgba(157, 175, 193, 0.18);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.iv-lead-flow > div::before {
  content: '';
  position: absolute;
  right: -34px;
  bottom: -43px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(217, 107, 115, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(217, 107, 115, 0.025);
  pointer-events: none;
}
.iv-lead-flow > div::after {
  content: '↗';
  position: absolute;
  top: 17px;
  right: 17px;
  color: rgba(217, 107, 115, 0.72);
  font-size: 0.9rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.iv-lead-flow > div:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 107, 115, 0.42);
  background: linear-gradient(145deg, rgba(217, 107, 115, 0.11), rgba(255, 255, 255, 0.025));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}
.iv-lead-flow > div:hover::after { color: #f0979d; transform: translate(2px, -2px); }
.iv-lead-flow > div span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(217, 107, 115, 0.42);
  border-radius: 50%;
  color: var(--case-accent);
  font-family: var(--font-mono);
  font-size: 0.63rem;
}
.iv-lead-flow strong { position: relative; z-index: 1; display: block; min-width: 0; margin-top: 22px; color: var(--text); font-size: 0.83rem; line-height: 1.35; }
.iv-lead-flow small { position: relative; z-index: 1; display: block; min-width: 0; margin-top: auto; padding-top: 10px; color: var(--text-dim); font-size: 0.7rem; line-height: 1.45; }

.iv-tech .case-tech-row:not(.head):hover { background: linear-gradient(90deg, rgba(217, 107, 115, 0.1), transparent 65%); }
.iv-tech .case-tech-row:not(.head)::before { background: var(--case-accent); }
.iv-cta { background: var(--iv-warm); color: var(--iv-navy); }
.iv-cta .section-title { color: var(--iv-navy); }
.iv-cta p { color: #647078; }
.iv-cta .section-label { color: #a94e57; }
.iv-cta .btn-ghost { color: var(--iv-navy); border-color: rgba(19, 34, 51, 0.32); background: rgba(19, 34, 51, 0.04); }
.iv-cta .btn-ghost:hover { color: #fff; border-color: var(--iv-navy); background: var(--iv-navy); }

@media (max-width: 1080px) {
  .iv-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iv-screen-card--wide { grid-column: auto; }
  .iv-publish-flow { grid-template-columns: repeat(3, 1fr); }
  .iv-publish-flow article:nth-child(3) { border-right: 0; }
  .iv-publish-flow article:nth-child(n + 4) { border-top: 1px solid var(--case-line); }
}

@media (max-width: 860px) {
  .iv-lead-flow { width: 100%; max-width: none; margin-left: 0; }
  .iv-control-grid { grid-template-columns: repeat(2, 1fr); }
  .iv-control-grid > div, .iv-control-grid > div:first-child { padding: 17px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .iv-control-grid > div:nth-child(odd) { padding-right: 18px; }
  .iv-control-grid > div:nth-child(even) { padding-left: 18px; }
  .iv-control-grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .iv-heading-split, .iv-seo-layout { grid-template-columns: 1fr; gap: 34px; }
  .iv-heading-split > p { margin-left: 0; }
  .iv-seo-layout { gap: 40px; }
  .iv-publish-flow { grid-template-columns: repeat(2, 1fr); }
  .iv-publish-flow article:nth-child(3) { border-right: 1px solid var(--case-line); }
  .iv-publish-flow article:nth-child(odd) { border-right: 1px solid var(--case-line); }
  .iv-publish-flow article:nth-child(even) { border-right: 0; }
  .iv-publish-flow article:nth-child(n + 3) { border-top: 1px solid var(--case-line); }
}

@media (max-width: 620px) {
  .iv-page .case-hero-visual { min-height: 350px; }
  .iv-hero-shot { width: min(100%, 510px); transform: none; }
  .iv-hero-shot:hover { transform: translateY(-5px); }
  .iv-page .case-hero-card-label { left: 0; bottom: 12px; font-size: 0.64rem; }
  .iv-control-grid { grid-template-columns: 1fr; }
  .iv-control-grid > div, .iv-control-grid > div:first-child, .iv-control-grid > div:nth-child(odd), .iv-control-grid > div:nth-child(even) { padding: 15px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .iv-control-grid > div:last-child { border-bottom: 0; }
  .iv-dual-grid, .iv-gallery { grid-template-columns: 1fr; }
  .iv-screen-card--wide { grid-column: auto; }
  .iv-publish-flow { grid-template-columns: 1fr; }
  .iv-publish-flow article, .iv-publish-flow article:nth-child(3), .iv-publish-flow article:nth-child(odd), .iv-publish-flow article:nth-child(even) { min-height: auto; border-right: 0; border-top: 1px solid var(--case-line); }
  .iv-publish-flow article:first-child { border-top: 0; }
  .iv-seo-map > div { grid-template-columns: 1fr; gap: 5px; padding: 14px 16px; }
  .iv-seo-map__head { display: none !important; }
  .iv-seo-note { grid-template-columns: 40px 1fr; }
  .iv-lead-flow { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .iv-side-card, .iv-publish-flow article, .iv-lead-flow > div { transition: none; }
  .iv-lead-flow > div:hover { transform: none; }
}
