/* ─── Blockchain / Crypto case study ─── */
/* Overrides base case-study.css with dark IvyCoin palette */

.iv-page {
  --cs-bg:           #141115;
  --cs-text:         #ffffff;
  --cs-text-muted:   rgba(255,255,255,0.45);
  --cs-border:       rgba(255,255,255,0.08);
  --cs-border-nav:   rgba(255,255,255,0.08);
  --cs-tag-bg:       rgba(0,234,228,0.15);
  --cs-tag-text:     #00EAE4;
  --cs-accent:       #00EAE4;
  --cs-card-bg:      #1D1B1E;
  --cs-white:        var(--cs-card-bg);
  background: #141115;
  color: #ffffff;
}

/* ─── Nav ─── */
.iv-page .cs-nav {
  background: rgba(20,17,21,0.97);
}

.iv-page .cs-nav--sticky {
  background: rgba(20,17,21,0.92);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
}

.iv-page .cs-nav__logo,
.iv-page .cs-nav__links a {
  color: #ffffff;
}

.iv-page .cs-nav__links a:hover {
  color: #00EAE4;
}

.iv-page .cs-nav__cv {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.iv-page .cs-nav__cv:hover {
  background: #00EAE4;
  border-color: #00EAE4;
  color: #141115 !important;
}

/* ─── Hero Bento ─── */
.iv-page .hm-hero__bento {
  background: #060508 !important;
  border: 1px solid rgba(48, 255, 206, 0.33);
}

.iv-page .hm-hero__bento::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at -5% 50%, rgba(0,234,228,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 55% 65% at 105% 35%, rgba(37,54,235,0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* ─── Details card ─── */
.iv-page .cs-details__card {
  background: var(--cs-card-bg);
  outline: 1px solid #393D44;
}

.iv-page .cs-details__title {
  color: var(--cs-text-muted);
}

.iv-page .cs-details__col-label {
  color: #00EAE4;
}

.iv-page .cs-details__col-value {
  color: var(--cs-text);
}

/* ─── Sections ─── */
.iv-page .cs-section {
  border-top-color: var(--cs-border);
}

.iv-page .cs-section__left h3 {
  color: var(--cs-text);
}

.iv-page .cs-section__number {
  color: var(--cs-border);
  -webkit-text-stroke: 0.5px var(--cs-accent);
}

/* ─── Hero blobs ─── */
.iv-page .hm-hero__blob--1 {
  background: radial-gradient(circle at 40% 40%, #2AF698 0%, #0BB5E3 40%, transparent 70%);
}

.iv-page .hm-hero__blob--2 {
  background: radial-gradient(circle at 55% 45%, #6F3FDE 0%, #F393FF 40%, transparent 70%);
}

/* ─── Process cards ─── */
.iv-page .cs-process__card {
  background: var(--cs-card-bg);
  outline: 1px solid #393D44;
}

.iv-page .cs-process__card:hover {
  outline-color: #00EAE4;
}

.iv-page .cs-process__badge {
  background: rgba(0,234,228,0.15);
  color: #00EAE4;
  border-color: rgba(0,234,228,0.3);
}

.iv-page .cs-process__body h3 {
  color: var(--cs-text);
}

.iv-page .cs-process__body p {
  color: var(--cs-text-muted);
}

/* ─── Pills / tags ─── */
.iv-page .hm-hero__pill {
  background: rgba(0,234,228,0.12);
  color: #00EAE4;
  border: 1px solid rgba(0,234,228,0.25);
}

/* ─── Buttons ─── */
.iv-page .hm-btn--primary {
  background:
    radial-gradient(ellipse 45.58% 139.58% at 49.66% -0%, rgba(0,234,228,0.20) 0%, rgba(0,234,228,0) 100%),
    radial-gradient(ellipse 50.51% 97.60% at 49.49% 105.82%, rgba(0,234,228,0.20) 0%, rgba(0,234,228,0.20) 90%);
  box-shadow: inset 0 0 10px rgba(0,234,228,0.12), 0px 0px 14.3px rgba(0,234,228,0);
  outline: 1px solid rgba(0,234,228,0.6);
  outline-offset: -1px;
  color: #fff;
  border: none;
}

.iv-page .hm-btn--primary:hover {
  background:
    radial-gradient(ellipse 45.58% 139.58% at 49.66% -0%, rgba(0,234,228,0.45) 0%, rgba(0,234,228,0) 100%),
    radial-gradient(ellipse 50.51% 97.60% at 49.49% 105.82%, rgba(0,234,228,0.45) 0%, rgba(0,234,228,0.45) 90%);
  box-shadow: inset 0 0 14px rgba(0,234,228,0.6), 0px 0px 14.3px rgba(0,234,228,0.18);
  outline-color: rgba(0,234,228,0.9);
  color: #fff;
}

.iv-page .hm-btn--outline {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.iv-page .hm-btn--outline:hover {
  background: rgba(255,255,255,0.08);
}

/* ─── Project blocks ─── */
.iv-project-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--cs-card-bg);
  outline: 1px solid #393D44;
  border-radius: 28px;
  overflow: hidden;
  margin: 0 0 96px;
  height: 400px;
  transition: outline-color 0.3s ease;
}

.iv-project-block:hover {
  outline-color: #00EAE4;
}

.iv-project-block__body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.iv-project-block--reverse {
  direction: rtl;
}

.iv-project-block--reverse > * {
  direction: ltr;
}

.iv-project-block__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #00EAE4;
}

.iv-project-block__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 12px 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.iv-project-block__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0;
}

.iv-project-block__visual {
  overflow: hidden;
  position: relative;
  min-height: 300px;
}

.iv-project-block__visual img {
  display: block;
  width: 80%;
  height: auto;
  object-fit: contain;
  transform: translateY(100%);
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 0 auto;
}

[data-reveal].revealed .iv-project-block__visual img {
  transform: translateY(0);
}

/* ─── Challenge cards grid ─── */
.iv-challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.iv-challenge-grid .cs-process__card {
  flex-direction: column;
  align-items: flex-start;
}

.iv-challenge-grid .cs-process__badge {
  font-size: 1.6rem;
  font-weight: 800;
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 0;
  border: none;
  background: none;
  color: rgba(0,234,228,0.4);
  line-height: 1;
  margin-bottom: 8px;
}

/* ─── Challenge cards (context) ─── */
.iv-challenges .iv-challenge__img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  margin-bottom: 16px;
}

.iv-challenges .iv-challenge__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iv-challenges .cs-process__card {
  background: none;
  height: auto;
  justify-content: flex-start;
  gap: 0;
}

.iv-challenges .cs-process__body {
  margin-top: auto;
}

.iv-challenges .cs-process__body h3 {
  font-size: 20px;
  line-height: 1.3;
}

/* ─── Artclear callout card ─── */
.iv-callout {
  background: var(--cs-card-bg);
  outline: 1px solid #393D44;
  border-radius: 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 48px;
  align-items: center;
  margin: 80px 0;
  overflow: hidden;
}

.iv-callout__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(37,54,235,0.7);
  margin-bottom: 14px;
  display: block;
}

.iv-callout__visual {
  overflow: hidden;
  border-radius: 0 24px 24px 0;
}

.iv-callout > :first-child {
  padding: 56px 0 56px 56px;
}

.iv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #00EAE4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  padding-bottom: 2px;
  margin-top: 24px;
}

.iv-link:hover { border-color: #00EAE4; }

/* ─── Takeaways ─── */
.iv-section-pad {
  padding: 0 0 64px;
}
.iv-takeaways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.iv-takeaways-grid .cs-process__card {
  flex-direction: column;
  align-items: flex-start;
}

.iv-takeaway-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0,234,228,0.12);
  border: 1px solid rgba(0,234,228,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

/* ─── Contact section ─── */
.iv-page .hm-contact {
  padding-top: 64px;
}
.iv-page .hm-contact__right {
  background: var(--cs-card-bg);
}

/* ─── hm-work__row dark theme overrides ─── */
.iv-page .hm-work__row {
  border-color: var(--cs-border);
}
.iv-page .hm-work__row-body {
  gap: 0;
  justify-content: space-between;
  padding: 32px 40px;
}
.iv-page .hm-work__row-body p {
  color: var(--cs-text-muted);
  max-width: 100%;
}
.iv-page .hm-work__row-bottom h3 {
  line-height: 1.15;
}
.iv-page .hm-work__row-num {
  display: none;
}
.iv-page .hm-work__row-cta {
  border-color: var(--cs-border);
  color: var(--cs-text);
  margin-top: 12px;
}
.iv-page .hm-work__row-cta::before {
  background: var(--cs-accent);
}
.iv-page .hm-work__row-cta:hover {
  color: #141115;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .iv-project-block { grid-template-columns: 1fr; height: auto; }
  .iv-project-block--reverse { direction: ltr; }
  .iv-project-block__body { padding: 32px; }
  .iv-takeaways-grid { grid-template-columns: 1fr; }
  .iv-challenge-grid { grid-template-columns: 1fr; }
}

