/* ============================================================
   Altus Reborn — Case Study page styles
   Imports tokens + base from service.css
   ============================================================ */

/* CASE HERO — full-bleed cinematic */
.case-hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  padding: 140px 0 96px;
  background: var(--graphite-900);
}
.case-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
}
.case-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,15,18,0.4) 0%, rgba(14,15,18,0.15) 30%, rgba(14,15,18,0.85) 75%, rgba(14,15,18,0.96) 100%),
    linear-gradient(90deg, rgba(14,15,18,0.55) 0%, transparent 60%);
}
.case-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}
.case-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(38, 89, 166, 0.18);
  border: 1px solid var(--accent-blue);
  color: var(--white);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.case-hero__tag::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
}
.case-hero__client {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-300);
  margin-bottom: 16px;
  font-weight: 600;
}
.case-hero h1 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 1100px;
}
.case-hero h1 em {
  font-style: normal;
  color: var(--accent-blue);
}
.case-hero__sub {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--steel-300);
  max-width: 720px;
}

/* FICHA TÉCNICA */
.case-spec {
  background: var(--graphite-900);
  color: var(--white);
  padding: 0 0 96px;
}
.case-spec__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 48px;
}
.case-spec__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--graphite-700);
  border-bottom: 1px solid var(--graphite-700);
}
.case-spec__item {
  padding: 32px 24px;
  border-right: 1px solid var(--graphite-700);
}
.case-spec__item:last-child { border-right: none; }
.case-spec__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: 12px;
  font-weight: 600;
}
.case-spec__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.case-spec__value small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--steel-400);
  margin-top: 4px;
  letter-spacing: 0;
}

/* CASE BODY — narrative blocks */
.case-body {
  background: var(--off-white);
  padding: 120px 0;
}
.case-body__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 48px;
}
.case-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-bottom: 120px;
  align-items: start;
}
.case-block:last-child { margin-bottom: 0; }
.case-block--reverse { grid-template-columns: 1.4fr 1fr; }
.case-block--reverse .case-block__visual { order: -1; }

.case-block__title-wrap {
  position: sticky;
  top: 110px;
}
.case-block__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.case-block__eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent-blue);
}
.case-block__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--graphite-900);
}
.case-block__title em {
  font-style: normal;
  color: var(--accent-blue);
}
.case-block__content {
  font-size: 18px;
  line-height: 1.7;
  color: var(--graphite-700);
}
.case-block__content p { margin-bottom: 24px; }
.case-block__content p:last-child { margin-bottom: 0; }
.case-block__content strong { color: var(--graphite-900); font-weight: 700; }

.case-block__visual {
  width: 100%;
  position: relative;
}
.case-block__visual img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--steel-300);
}
.case-block__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-top: 12px;
  font-weight: 500;
}

/* RESULT NUMBERS */
.case-result {
  background: var(--graphite-900);
  color: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.case-result::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(38, 89, 166, 0.18) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.case-result__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}
.case-result__head {
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.case-result__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.case-result__eyebrow::before, .case-result__eyebrow::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent-blue);
}
.case-result__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
}
.case-result__title em {
  font-style: normal;
  color: var(--accent-blue);
}
.case-result__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--graphite-700);
  border-bottom: 1px solid var(--graphite-700);
}
.case-result__metric {
  padding: 48px 24px;
  text-align: center;
  border-right: 1px solid var(--graphite-700);
}
.case-result__metric:last-child { border-right: none; }
.case-result__metric-value {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-blue);
  margin-bottom: 14px;
  font-feature-settings: "tnum";
}
.case-result__metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-400);
  line-height: 1.4;
}

/* TESTIMONIAL */
.testimonial {
  background: var(--off-white);
  padding: 120px 0;
}
.testimonial__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}
.testimonial__quote {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--graphite-900);
  margin-bottom: 48px;
  position: relative;
  padding: 0 24px;
}
.testimonial__quote::before {
  content: '"';
  position: absolute;
  top: -32px; left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 96px;
  line-height: 1;
  color: var(--accent-blue);
  opacity: 0.3;
}
.testimonial__author {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.testimonial__author-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--graphite-900);
  letter-spacing: -0.005em;
}
.testimonial__author-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-500);
  font-weight: 500;
}
.testimonial__placeholder {
  font-style: italic;
  color: var(--steel-500);
  font-size: 13px;
  margin-top: 20px;
}

/* RELATED CASES */
.related-cases {
  background: var(--graphite-900);
  color: var(--white);
  padding: 120px 0;
}
.related-cases__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 48px;
}
.related-cases__head {
  margin-bottom: 56px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--graphite-700);
  padding-bottom: 32px;
}
.related-cases__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}
.related-cases__title em { font-style: normal; color: var(--accent-blue); }
.related-cases__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-blue);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 240ms var(--ease);
}
.related-cases__link:hover { gap: 16px; }
.related-cases__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.related-card {
  position: relative;
  overflow: hidden;
  background: var(--graphite-800);
  border: 1px solid var(--graphite-700);
  cursor: pointer;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 32px;
  transition: transform 350ms var(--ease), border-color 280ms var(--ease);
}
.related-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-blue);
}
.related-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  transition: filter 350ms var(--ease), transform 600ms var(--ease);
  z-index: 0;
}
.related-card:hover .related-card__bg { filter: brightness(0.45); transform: scale(1.04); }
.related-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(14,15,18,0.95) 100%);
}
.related-card__content { position: relative; z-index: 1; }
.related-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 12px;
}
.related-card__client {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-300);
  margin-bottom: 10px;
}
.related-card__title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}
.related-card__link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 240ms var(--ease);
}
.related-card:hover .related-card__link { gap: 16px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .case-hero__inner, .case-spec__inner, .case-body__inner, .case-result__inner, .testimonial__inner, .related-cases__inner {
    padding-left: 24px; padding-right: 24px;
  }
  .case-spec__grid { grid-template-columns: 1fr 1fr; }
  .case-spec__item:nth-child(2n) { border-right: none; }
  .case-spec__item:nth-child(-n+2) { border-bottom: 1px solid var(--graphite-700); }
  .case-block, .case-block--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 80px;
  }
  .case-block--reverse .case-block__visual { order: 0; }
  .case-block__title-wrap { position: relative; top: 0; }
  .case-result__grid { grid-template-columns: 1fr 1fr; }
  .case-result__metric:nth-child(2n) { border-right: none; }
  .case-result__metric:nth-child(-n+2) { border-bottom: 1px solid var(--graphite-700); }
  .related-cases__grid { grid-template-columns: 1fr; }
  .related-cases__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .case-spec__grid { grid-template-columns: 1fr; }
  .case-spec__item { border-right: none !important; border-bottom: 1px solid var(--graphite-700); }
  .case-spec__item:last-child { border-bottom: none; }
  .case-result__grid { grid-template-columns: 1fr; }
  .case-result__metric { border-right: none !important; border-bottom: 1px solid var(--graphite-700); }
  .case-result__metric:last-child { border-bottom: none; }
}
