/* Spot de TV: blanco, tinta negra y naranja institucional. */
.career-intro {
  --orange: #ff5900;
  --orange-ink: #b83f00;
  --ink: #252525;
  --muted: #5f5f5f;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 5rem);
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  opacity: 1;
  transition: opacity .5s cubic-bezier(.4, 0, 1, 1), visibility .5s;
}

.career-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.career-intro.is-leaving .ci-inner {
  opacity: 0;
  transform: scale(.985);
}

.ci-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(100%, 1600px);
  height: 100%;
  gap: clamp(1rem, 2.2vh, 2rem);
  transition: opacity .4s cubic-bezier(.4, 0, 1, 1), transform .45s cubic-bezier(.4, 0, 1, 1);
}

.ci-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(.8rem, 1.5vh, 1.2rem);
  border-bottom: 1px solid rgba(37, 37, 37, .12);
  animation: ci-rise .7s .1s both;
}

.ci-eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0;
  color: var(--orange-ink);
  font-size: clamp(.7rem, .9vw, .95rem);
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.ci-eyebrow span {
  width: clamp(2rem, 4vw, 4.5rem);
  height: 2px;
  background: var(--orange);
}

.ci-title {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -.02em;
}

.ci-title strong {
  color: var(--orange);
  font-weight: 800;
}

.ci-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  min-height: 0;
}

.ci-stage.is-scene .ci-copy,
.ci-stage.is-scene .ci-visual {
  animation: ci-scene-in .5s cubic-bezier(.2, 0, 0, 1) both;
}

.ci-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: clamp(.5rem, 1.2vh, 1rem);
}

.ci-index {
  color: var(--orange-ink);
  font-size: clamp(.9rem, 1.2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: .2em;
}

.ci-name {
  max-width: 12ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 8.5rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: .9;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.ci-name.is-long {
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 6rem);
}

.ci-name::after {
  display: block;
  width: clamp(4rem, 9vw, 9rem);
  height: 6px;
  margin-top: clamp(.8rem, 1.6vh, 1.2rem);
  background: var(--orange);
  content: "";
}

.ci-tagline {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.8rem);
  line-height: 1.35;
}

.ci-visual {
  --accent: #ff5900;
  --wash: #fff4ec;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
}

.ci-visual .dce-art {
  width: 100%;
  height: auto;
  max-height: 46vh;
}

.ci-visual .dce-art.chem-lab .base,
.ci-visual .dce-art.chem-lab .line {
  stroke: #252525;
}

.ci-visual .dce-art.chem-lab .base { stroke-width: 1.8; }
.ci-visual .dce-art.chem-lab .line { stroke-width: 1.9; }

.ci-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.8rem, 2vw, 2rem);
  border-top: 1px solid rgba(37, 37, 37, .12);
  animation: ci-rise .7s .55s both;
}

.ci-item {
  --accent: var(--orange);
  position: relative;
  min-width: 0;
  padding: clamp(.7rem, 1.2vh, 1rem) 0;
  color: var(--muted);
}

.ci-item b {
  display: block;
  color: var(--orange-ink);
  font-size: clamp(.7rem, .9vw, .9rem);
  letter-spacing: .18em;
}

.ci-item span {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font-size: clamp(.85rem, 1.1vw, 1.1rem);
  font-weight: 600;
  line-height: 1.15;
}

.ci-item::before {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.ci-item.is-active::before {
  transform: scaleX(1);
}

.ci-item.is-active b,
.ci-item.is-active span {
  color: var(--ink);
}

.ci-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(37, 37, 37, .12);
}

.ci-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  animation: ci-progress 12s linear forwards;
}

@keyframes ci-rise {
  from { opacity: 0; transform: translateY(.8rem); }
  to { opacity: 1; transform: none; }
}

@keyframes ci-scene-in {
  from { opacity: 0; transform: translateY(.6rem); }
  to { opacity: 1; transform: none; }
}

@keyframes ci-progress {
  to { transform: scaleX(1); }
}

@media (max-width: 1100px) {
  .ci-stage { grid-template-columns: 1fr; gap: 1.5rem; }
  .ci-visual { max-width: 520px; margin: 0 auto; }
  .ci-name { font-size: clamp(3rem, 12vw, 6rem); }
}

@media (max-width: 900px) {
  .career-intro { padding: 1.5rem; }
  .ci-head { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .ci-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ci-name { font-size: clamp(2.8rem, 16vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .ci-head,
  .ci-grid,
  .ci-stage.is-scene .ci-copy,
  .ci-stage.is-scene .ci-visual,
  .ci-progress i {
    animation: none;
  }
  .ci-progress i { transform: scaleX(1); }
  .ci-visual .dce-art * { animation: none !important; }
  .career-intro.is-leaving .ci-inner { transition: none; }
}
