/* Ilha Experts — complementos ao layout de agência de ../marketing/marketing.css
   (o mesmo usado por Marketing e Tech). Tudo aqui tem prefixo .ex-. */

/* ---------- Hero: texto + ilustração "desafio → especialista" ---------- */
.ex-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(760px, 100svh);
  padding: 190px 0 0;
  background:
    radial-gradient(ellipse 60% 70% at 82% 40%, rgba(250, 70, 22, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(250, 70, 22, 0.08), transparent 70%),
    var(--black);
  overflow: hidden;
}
.ex-hero::before { /* grade de pontos discreta, como no diagrama da Home */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(rgba(243, 239, 231, 0.09) 1px, transparent 1.2px) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000, transparent 75%);
}
.ex-hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  padding-bottom: 64px;
}
.ex-hero .eyebrow { margin-bottom: 26px; }
.ex-hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6.6vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.ex-hero .mk-hero-lead { max-width: 50ch; }
.ex-hero-index { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Ilustração: dois estados que se alternam (12 s no total). */
.ex-match { position: relative; min-height: 470px; }
.ex-match-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  opacity: 0;
  animation: ex-swap 12s ease-in-out infinite;
}
.ex-match-state + .ex-match-state { animation-delay: 6s; }
@keyframes ex-swap {
  0% { opacity: 0; transform: translateY(14px); }
  6%, 44% { opacity: 1; transform: none; }
  50%, 100% { opacity: 0; transform: translateY(-14px); }
}
.ex-challenge,
.ex-expert {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(21, 19, 16, 0.86);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.ex-challenge { padding: 22px 24px; max-width: 420px; }
.ex-challenge small,
.ex-expert small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.ex-challenge p {
  margin-top: 10px;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
}
.ex-challenge p::after { /* cursor de digitação */
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.12em;
  background: var(--orange);
  animation: word-rotate-blink 1s step-end infinite;
}
/* Conector: linha tracejada com um pulso descendo do desafio ao especialista. */
.ex-link {
  position: relative;
  height: 64px;
  margin-left: 48px;
  border-left: 2px dashed rgba(250, 70, 22, 0.55);
}
.ex-link i {
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px var(--orange);
  animation: ex-pulse-down 1.6s ease-in infinite;
}
@keyframes ex-pulse-down { 0% { top: -4px; opacity: 0; } 15% { opacity: 1; } 100% { top: 58px; opacity: 0; } }
.ex-expert {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: clamp(0px, 4vw, 56px);
  padding: 18px 22px 18px 18px;
  border-color: rgba(250, 70, 22, 0.6);
}
.ex-expert img {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  box-shadow: 0 0 0 3px var(--black), 0 0 0 5px var(--orange);
}
.ex-expert b {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 700;
  font-variation-settings: "opsz" 40, "wght" 700;
  line-height: 1.1;
  color: var(--fg);
}
.ex-expert span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--orange-light);
}
.ex-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0 clamp(0px, 4vw, 56px);
}
.ex-chips span {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(21, 19, 16, 0.8);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg);
}

/* ---------- Áreas de especialidade ---------- */
.ex-areas-section { padding: 130px 0; }
.ex-areas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.ex-area {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(243, 239, 231, 0.02);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.ex-area:hover,
.ex-area:focus-visible { border-color: var(--orange); background: var(--orange-dim); transform: translateY(-4px); }
.ex-area-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--orange);
}
.ex-area-icon {
  width: 34px;
  height: 34px;
  margin-top: 30px;
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease;
}
.ex-area:hover .ex-area-icon { stroke: var(--orange-light); }
.ex-area h3 { margin-top: 22px; font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.15; }
.ex-area p { margin-top: 10px; font-size: 0.95rem; color: var(--fg-dim); }
.ex-area-link {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
}
.ex-area-link span { color: var(--orange); display: inline-block; transition: transform 0.18s ease; }
.ex-area:hover .ex-area-link span { transform: translate(3px, -3px); }
.ex-area--cta { background: var(--orange); border-color: var(--orange); color: var(--black); }
.ex-area--cta .ex-area-num,
.ex-area--cta h3,
.ex-area--cta p,
.ex-area--cta .ex-area-link,
.ex-area--cta .ex-area-link span { color: var(--black); }
.ex-area--cta h3 { margin-top: auto; font-size: clamp(1.4rem, 2vw, 1.75rem); }
.ex-area--cta p { opacity: 0.78; }
.ex-area--cta .ex-area-link { margin-top: 0; }
.ex-area--cta:hover,
.ex-area--cta:focus-visible { background: var(--orange-light); border-color: var(--orange-light); }

/* ---------- Especialistas: blocos editoriais (base .mk-service) ---------- */
.ex-experts { padding: 130px 0 90px; }
.ex-experts::before { top: -380px; left: -360px; }
.ex-expert-block .mk-service-media { aspect-ratio: 4 / 5; max-width: 520px; width: 100%; justify-self: center; }
.ex-portrait { position: relative; display: block; }
.ex-portrait img { object-position: 50% 20%; }
.ex-portrait::after { /* leve tonalização laranja na base, como nos cards de case */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 4, 3, 0.55), transparent 40%);
  pointer-events: none;
}
.ex-portrait-tag {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ex-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}
.ex-figures div { padding: 16px 14px; border: 1px solid var(--line); border-radius: 12px; }
.ex-figures dt {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  font-variation-settings: "opsz" 96, "wght" 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
}
.ex-figures dd { margin: 8px 0 0; font-size: 0.86rem; line-height: 1.35; color: var(--fg-dim); }
.ex-method {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: method;
}
.ex-method li {
  counter-increment: method;
  position: relative;
  flex: 1 1 auto;
  padding: 12px 8px 12px;
  border-top: 2px solid var(--orange);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}
.ex-method li::before {
  content: counter(method, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
}
.ex-actions { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.ex-link-alt { border-bottom-color: var(--line-strong); color: var(--fg-dim); }
.ex-link-alt:hover { color: var(--fg); border-bottom-color: var(--orange); }

/* ---------- Como funciona: etapas ligadas por uma linha com pulso ---------- */
.ex-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ex-flow::before { /* trilho */
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(250, 70, 22, 0.25));
}
.ex-flow::after { /* pulso percorrendo o trilho */
  content: "";
  position: absolute;
  top: 22px;
  left: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 16px var(--orange);
  animation: ex-flow-run 4.8s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
@keyframes ex-flow-run { 0% { left: 28px; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 40px); opacity: 0; } }
.ex-step { position: relative; z-index: 1; }
.ex-step-node {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}
.ex-step:last-child .ex-step-node { background: var(--orange); color: var(--black); }
.ex-step h3 { margin-top: 26px; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.2; }
.ex-step p { margin-top: 10px; max-width: 30ch; color: var(--fg-dim); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .ex-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .ex-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .ex-match { min-height: 420px; }
  .ex-expert-block .mk-service-media { aspect-ratio: 4 / 5; max-width: 440px; }
  .ex-flow { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .ex-flow::before, .ex-flow::after { display: none; }
}
@media (max-width: 760px) {
  .ex-hero { padding-top: 150px; min-height: 0; }
  .ex-hero-grid { padding-bottom: 40px; }
  .ex-hero .mk-hero-actions .button { width: 100%; justify-content: center; }
  .ex-hero-index { grid-template-columns: 1fr 1fr; }
  .ex-hero-index a { padding: 16px 12px 18px 0; }
  .ex-match { min-height: 380px; }
  .ex-challenge { max-width: none; }
  .ex-link { height: 48px; margin-left: 36px; }
  @keyframes ex-pulse-down { 0% { top: -4px; opacity: 0; } 15% { opacity: 1; } 100% { top: 42px; opacity: 0; } }
  .ex-expert { margin-left: 0; }
  .ex-expert img { width: 64px; height: 64px; }
  .ex-chips { margin-left: 0; }
  .ex-areas-section { padding: 90px 0; }
  .ex-areas { grid-template-columns: 1fr; gap: 12px; }
  .ex-area { min-height: 0; }
  .ex-area-icon { margin-top: 18px; }
  .ex-area--cta h3 { margin-top: 18px; }
  .ex-experts { padding: 90px 0 40px; }
  .ex-figures { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .ex-figures div { padding: 12px 10px; }
  .ex-flow { grid-template-columns: 1fr; row-gap: 0; padding-left: 0; }
  .ex-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; padding-bottom: 32px; }
  .ex-step::before { /* trilho vertical entre os nós */
    content: "";
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: 0;
    width: 2px;
    background: rgba(250, 70, 22, 0.35);
  }
  .ex-step:last-child::before { display: none; }
  .ex-step-node { grid-row: 1 / 3; }
  .ex-step h3 { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-match-state { animation: none; }
  .ex-match-state:first-child { opacity: 1; }
  .ex-challenge p::after, .ex-link i, .ex-flow::after { animation: none; }
  .ex-link i, .ex-flow::after { display: none; }
  .ex-area, .ex-area:hover { transition: none; transform: none; }
}

/* ---------- Perfis de especialista (experts/<nome>/): complementos ao
   componente .expert-hero de ../style.css. Usado pela página da Laís. ---------- */
.ex-headline {
  max-width: 24ch;
  margin-bottom: 20px;
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.1rem);
  font-weight: 600;
  font-variation-settings: "opsz" 64, "wght" 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.ex-headline em { font-style: normal; color: var(--orange); }

.ex-vision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: end;
}
.ex-vision h2 { margin-top: 18px; max-width: 16ch; }
.ex-vision-copy .lead { color: var(--fg); }
.ex-vision-copy p + p { margin-top: 18px; color: var(--fg-dim); }

.ex-areas--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ex-areas--3 .ex-area { min-height: 240px; }
.ex-areas--3 .ex-area h3 { margin-top: auto; padding-top: 48px; }

.ex-statement-section { padding: 140px 0; }
.ex-statement {
  max-width: 22ch;
  margin-top: 28px;
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 600;
  font-variation-settings: "opsz" 96, "wght" 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg-dim2);
}
.ex-statement span { color: var(--fg-dim); }
.ex-statement strong { font-weight: 700; color: var(--fg); }
.ex-statement strong::after {
  content: "";
  display: block;
  width: 96px;
  height: 4px;
  margin-top: 36px;
  border-radius: 2px;
  background: var(--orange);
}

@media (max-width: 920px) {
  .ex-vision { grid-template-columns: 1fr; gap: 24px; }
  .ex-areas--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ex-areas--3 { grid-template-columns: 1fr; }
  .ex-areas--3 .ex-area { min-height: 0; }
  .ex-areas--3 .ex-area h3 { padding-top: 22px; }
  .ex-statement-section { padding: 90px 0; }
}

/* Cartões sobre seção clara (.section.soft). */
.soft .ex-area { background: #fff; border-color: rgba(23, 19, 16, 0.12); box-shadow: 0 1px 0 rgba(23, 19, 16, 0.04); }
.soft .ex-area h3 { color: var(--ink); }
.soft .ex-area p { color: var(--ink-dim); }
.soft .ex-area:hover,
.soft .ex-area:focus-visible { background: #fff; border-color: var(--orange); box-shadow: 0 18px 40px rgba(23, 19, 16, 0.08); }
