/* ========================================================================== 
   PORTFOLIO DIAMOND V1.79 — MOBILE / TABLET / IPAD
   Fonte de verdade para Hero, Especialidades e Timeline em telas <= 1100px.
   A camada desktop permanece intocada.
   ========================================================================== */

@media (max-width: 1100px) {
  /* HERO — composição vertical real, não desktop comprimido */
  #inicio.hx-hero {
    min-height: auto !important;
    padding: clamp(34px, 6vw, 58px) 0 clamp(42px, 7vw, 70px) !important;
  }
  #inicio.hx-hero > .hx-shell {
    width: min(100% - 30px, 820px) !important;
    gap: 22px !important;
  }
  #inicio .hx-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: clamp(24px, 5vw, 44px) !important;
  }
  #inicio .hx-copy {
    width: 100% !important;
    max-width: 720px !important;
    padding-top: 0 !important;
    margin-inline: auto !important;
  }
  #inicio .hx-command {
    width: 100% !important;
    max-width: 720px !important;
    margin-inline: auto !important;
    gap: 0 !important;
  }
  #inicio .hx-orbit {
    --orbit-size: min(78vw, 600px) !important;
    margin-inline: auto !important;
  }
  #inicio .hx-profile-card {
    width: min(100%, 650px) !important;
    margin: -22px auto 0 !important;
    position: relative !important;
    z-index: 20 !important;
  }
  #inicio .hx-scroll { display: none !important; }

  /* ESPECIALIDADES — uma experiência de carrossel por cartão */
  #especialidades.spx-section {
    padding-block: clamp(54px, 8vw, 76px) !important;
  }
  #especialidades .spx-shell {
    width: min(100% - 30px, 760px) !important;
  }
  #especialidades .spx-heading {
    margin-bottom: 30px !important;
  }
  #especialidades .spx-heading h2 {
    font-size: clamp(2.2rem, 7.5vw, 4rem) !important;
    line-height: .92 !important;
  }
  #especialidades .spx-track {
    grid-auto-columns: min(78vw, 520px) !important;
    gap: 18px !important;
    padding: 12px max(10px, calc((100% - min(78vw, 520px))/2)) 84px !important;
  }
  #especialidades .spx-card {
    min-height: 500px !important;
  }
  #especialidades .spx-nav {
    top: auto !important;
    bottom: 12px !important;
    width: 48px !important;
    height: 48px !important;
    transform: none !important;
  }
  #especialidades .spx-nav:hover { transform: translateY(-2px) !important; }
  #especialidades .spx-nav--prev { left: calc(50% - 102px) !important; }
  #especialidades .spx-nav--next { right: calc(50% - 102px) !important; }
/* TIMELINE — eixo vertical legível para touch */
  #sobre .career-panel--full {
    padding: clamp(22px, 4vw, 34px) !important;
  }
  #sobre .career-timeline {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding-left: 54px !important;
  }
  #sobre .career-timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, #3f8cff, #7358ff 48%, #b54cff);
    box-shadow: 0 0 18px rgba(83, 105, 255, .42);
  }
  #sobre .career-timeline article {
    position: relative !important;
    min-width: 0 !important;
    padding: 18px 0 22px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(104, 130, 213, .15) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
  }
  #sobre .career-timeline article:last-child { border-bottom: 0 !important; }
  #sobre .career-node {
    position: absolute !important;
    left: -54px !important;
    top: 17px !important;
    width: 42px !important;
    height: 42px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(123, 101, 255, .72) !important;
    border-radius: 50% !important;
    background: #07132e !important;
    color: #9d77ff !important;
    box-shadow: 0 0 20px rgba(99, 76, 255, .25) !important;
  }
  #sobre .career-year {
    display: block !important;
    margin-bottom: 5px !important;
    color: #64a9ff !important;
    font: 800 .82rem/1 "Inter", sans-serif !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
  }
  #sobre .career-timeline article > strong {
    display: block !important;
    margin-bottom: 7px !important;
    color: #f6f8ff !important;
    font: 750 clamp(1rem, 2.8vw, 1.18rem)/1.2 "League Spartan", sans-serif !important;
  }
  #sobre .career-timeline article > p {
    margin: 0 !important;
    max-width: 620px !important;
    color: rgba(220, 228, 249, .72) !important;
    font-size: .82rem !important;
    line-height: 1.55 !important;
  }
}

@media (max-width: 680px) {
  /* HEADER / SHELL */
  #inicio.hx-hero > .hx-shell { width: min(100% - 24px, 500px) !important; }

  /* HERO mobile conforme referência */
  #inicio.hx-hero {
    padding-top: 28px !important;
    padding-bottom: 46px !important;
  }
  #inicio .hx-copy { text-align: left !important; }
  #inicio .hx-eyebrow {
    width: 100% !important;
    justify-content: center !important;
    min-height: 31px !important;
    padding: 6px 10px !important;
    font-size: .55rem !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
  #inicio .hx-copy h1 {
    margin: 15px 0 13px !important;
    font-size: clamp(3rem, 14vw, 4.25rem) !important;
    line-height: .9 !important;
    letter-spacing: -.055em !important;
  }
  #inicio .hx-copy > p {
    font-size: .86rem !important;
    line-height: 1.58 !important;
  }
  #inicio .hx-capabilities { display: none !important; }
  #inicio .hx-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    margin-top: 18px !important;
  }
  #inicio .hx-button {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 10px !important;
    font-size: .72rem !important;
  }
  #inicio .hx-techbar {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin-top: 15px !important;
  }
  #inicio .hx-techbar span,
  #inicio .hx-techbar span:last-child {
    grid-column: auto !important;
    min-width: 0 !important;
    min-height: 52px !important;
    padding: 7px 2px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    font-size: .46rem !important;
    text-align: center !important;
  }
  #inicio .hx-techbar svg { width: 20px !important; height: 20px !important; }
  #inicio .hx-command { margin-top: -4px !important; }
  #inicio .hx-orbit {
    --orbit-size: min(108vw, 430px) !important;
    width: var(--orbit-size) !important;
    max-width: none !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
    aspect-ratio: 1.04 / 1 !important;
  }
  #inicio .hx-orbit-lines { opacity: .62 !important; }
  #inicio .hx-node { display: none !important; }
  #inicio .hx-jupiter-ring-a { width: 82% !important; }
  #inicio .hx-jupiter-ring-b { width: 89% !important; }
  #inicio .hx-portrait-frame {
    width: 55% !important;
    height: 60% !important;
    padding: 5px !important;
  }
  #inicio .hx-profile-card {
    width: 100% !important;
    margin-top: -54px !important;
    border-radius: 14px !important;
  }
  #inicio .hx-profile-main {
    display: block !important;
    padding: 13px 14px !important;
    text-align: center !important;
  }
  #inicio .hx-profile-main h2 { font-size: 1rem !important; }
  #inicio .hx-profile-main p { font-size: .65rem !important; }
  #inicio .hx-availability {
    justify-content: center !important;
    font-size: .58rem !important;
  }
  #inicio .hx-status { display: none !important; }
  #inicio .hx-profile-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #inicio .hx-profile-stats > div {
    min-height: 72px !important;
    padding: 10px 4px !important;
    border-right: 1px solid rgba(111,134,194,.2) !important;
    border-bottom: 0 !important;
  }
  #inicio .hx-profile-stats > div:last-child { border-right: 0 !important; }
  #inicio .hx-profile-stats span { display: none !important; }
  #inicio .hx-profile-stats small { font-size: .49rem !important; line-height: 1.25 !important; }
  #inicio .hx-profile-stats strong { font-size: 1rem !important; }
  #inicio .hx-profile-stats em { font-size: .47rem !important; }

  /* ESPECIALIDADES mobile: heading compacto e cartão único */
  #especialidades .spx-shell { width: min(100% - 22px, 470px) !important; }
  #especialidades .spx-heading { margin-bottom: 22px !important; }
  #especialidades .spx-heading h2 {
    display: block !important;
    font-size: clamp(1.55rem, 7vw, 2.2rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -.03em !important;
    text-align: center !important;
  }
  #especialidades .spx-heading h2 span,
  #especialidades .spx-heading h2 strong { display: inline !important; }
  #especialidades .spx-heading h2 span { margin-right: .25em !important; }
  #especialidades .spx-heading__ornament {
    grid-template-columns: 44px 9px 44px !important;
    margin-top: 14px !important;
  }
  #especialidades .spx-viewport {
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 0 !important;
    overflow-y: visible !important;
  }
  #especialidades .spx-track {
    grid-auto-columns: 100% !important;
    gap: 14px !important;
    padding: 8px 0 82px !important;
  }
  #especialidades .spx-card {
    min-height: 430px !important;
    padding: 20px 16px 17px !important;
    border-radius: 15px !important;
    scroll-snap-align: center !important;
  }
  #especialidades .spx-card__number {
    margin-bottom: 12px !important;
    font-size: .72rem !important;
  }
  #especialidades .spx-card__icon {
    width: 66px !important;
    height: 66px !important;
    margin-bottom: 18px !important;
    font-size: 1.8rem !important;
  }
  #especialidades .spx-card h3 {
    font-size: 1.35rem !important;
    line-height: 1.12 !important;
  }
  #especialidades .spx-card > p {
    margin-top: 12px !important;
    font-size: .81rem !important;
    line-height: 1.55 !important;
  }
  #especialidades .spx-card__tech {
    margin-top: 19px !important;
    padding-top: 14px !important;
  }
  #especialidades .spx-card__tech-label { font-size: .6rem !important; }
  #especialidades .spx-tech-chip {
    min-height: 28px !important;
    padding-inline: 9px !important;
    font-size: .62rem !important;
  }
  #especialidades .spx-card__cta { display: none !important; }
  #especialidades .spx-carousel.has-active .spx-card.is-active,
  #especialidades .spx-card.is-active {
    transform: none !important;
  }
  #especialidades .spx-carousel.has-active .spx-card:not(.is-active) {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  #especialidades .spx-nav {
    width: 44px !important;
    height: 44px !important;
    bottom: 13px !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
  }
  #especialidades .spx-nav--prev { left: calc(50% - 92px) !important; }
  #especialidades .spx-nav--next { right: calc(50% - 92px) !important; }
/* TIMELINE mobile */
  #sobre .professional-overview__header,
  #sobre .impact-indicators { display: none !important; }
  #sobre .professional-overview {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  #sobre .professional-overview::before,
  #sobre .professional-overview::after { display: none !important; }
  #sobre .professional-overview__content {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  #sobre .career-panel--full {
    padding: 22px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  #sobre .career-panel--full > header { margin-bottom: 12px !important; }
  #sobre .career-panel--full > header .system-kicker { justify-content: center !important; }
  #sobre .career-panel--full > header h3 {
    max-width: 320px !important;
    margin: 10px auto 18px !important;
    font-size: 1.35rem !important;
    line-height: 1.12 !important;
    text-align: center !important;
  }
  #sobre .career-timeline {
    padding-left: 48px !important;
  }
  #sobre .career-timeline::before { left: 18px !important; }
  #sobre .career-node {
    left: -48px !important;
    width: 38px !important;
    height: 38px !important;
  }
  #sobre .career-timeline article { padding: 15px 0 19px !important; }
  #sobre .career-timeline article > strong { font-size: 1rem !important; }
  #sobre .career-timeline article > p { font-size: .76rem !important; }
  #sobre .career-next-step {
    width: 100% !important;
    margin-top: 14px !important;
  }
}

@media (max-width: 380px) {
  #inicio .hx-copy h1 { font-size: 2.85rem !important; }
  #inicio .hx-orbit { --orbit-size: 405px !important; }
  #especialidades .spx-card { min-height: 410px !important; }
}

/* ========================================================================== 
   V1.80 — RESPONSIVIDADE DE PRECISÃO (viewport CSS real)
   Faixa principal: 360–430px. Mantém o desktop acima de 1100px intacto.
   ========================================================================== */
@media (max-width: 680px) {
  :root { --mobile-pad: clamp(16px, 4.6vw, 20px); }
  html, body { max-width: 100%; overflow-x: clip !important; }
  body { font-size: 16px; }
  .interface, .site-section > .interface { width: min(100% - (var(--mobile-pad) * 2), 460px) !important; margin-inline: auto !important; }
  .site-section { scroll-margin-top: 72px; }

  /* HERO */
  #inicio.hx-hero { min-height: 0 !important; padding: 18px 0 36px !important; }
  #inicio.hx-hero > .hx-shell { width: min(100% - 28px, 440px) !important; }
  #inicio .hx-layout { gap: 14px !important; }
  #inicio .hx-copy h1 {
    margin: 12px 0 10px !important;
    font-size: clamp(2.55rem, 12.4vw, 3.45rem) !important;
    line-height: .92 !important;
    letter-spacing: -.052em !important;
  }
  #inicio .hx-copy > p { max-width: 39ch !important; font-size: clamp(.78rem, 3.2vw, .88rem) !important; line-height: 1.5 !important; }
  #inicio .hx-eyebrow { min-height: 27px !important; padding: 5px 8px !important; font-size: clamp(.43rem, 1.9vw, .53rem) !important; }
  #inicio .hx-actions { margin-top: 14px !important; gap: 7px !important; }
  #inicio .hx-button { min-height: 43px !important; border-radius: 8px !important; font-size: .65rem !important; }
  #inicio .hx-techbar { gap: 5px !important; margin-top: 12px !important; }
  #inicio .hx-techbar span, #inicio .hx-techbar span:last-child { min-height: 45px !important; border-radius: 8px !important; font-size: .4rem !important; }
  #inicio .hx-techbar svg { width: 18px !important; height: 18px !important; }
  #inicio .hx-command { margin-top: -16px !important; }
  #inicio .hx-orbit {
    --orbit-size: min(96vw, 390px) !important;
    height: min(92vw, 374px) !important;
    aspect-ratio: auto !important;
  }
  #inicio .hx-portrait-frame { width: 49% !important; height: 57% !important; }
  #inicio .hx-profile-card { margin-top: -64px !important; }
  #inicio .hx-profile-main { padding: 10px 12px !important; }
  #inicio .hx-profile-main h2 { font-size: .88rem !important; }
  #inicio .hx-profile-main p { margin-top: 2px !important; font-size: .54rem !important; }
  #inicio .hx-availability { margin-top: 5px !important; font-size: .5rem !important; }
  #inicio .hx-profile-stats > div { min-height: 57px !important; padding: 7px 2px !important; }
  #inicio .hx-profile-stats strong { font-size: .88rem !important; }
  #inicio .hx-profile-stats small, #inicio .hx-profile-stats em { font-size: .42rem !important; }

  /* ESPECIALIDADES */
  #especialidades.spx-section { padding: 42px 0 46px !important; }
  #especialidades .spx-shell { width: min(100% - 28px, 430px) !important; }
  #especialidades .spx-heading { margin-bottom: 18px !important; }
  #especialidades .spx-heading h2 { font-size: clamp(1.42rem, 6.5vw, 1.85rem) !important; }
  #especialidades .spx-track { padding: 4px 0 64px !important; }
  #especialidades .spx-card {
    min-height: 0 !important;
    height: auto !important;
    padding: 16px 14px 14px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #especialidades .spx-card__number { margin-bottom: 8px !important; }
  #especialidades .spx-card__icon { width: 54px !important; height: 54px !important; margin: 0 auto 12px !important; font-size: 1.45rem !important; }
  #especialidades .spx-card h3 { font-size: clamp(1rem, 4.3vw, 1.18rem) !important; }
  #especialidades .spx-card > p { margin-top: 8px !important; font-size: .72rem !important; line-height: 1.48 !important; }
  #especialidades .spx-card__tech { margin-top: 18px !important; padding-top: 11px !important; }
  #especialidades .spx-card__tech-list { gap: 5px !important; }
  #especialidades .spx-tech-chip { min-height: 23px !important; padding: 4px 7px !important; font-size: .52rem !important; }
  #especialidades .spx-nav { width: 38px !important; height: 38px !important; bottom: 8px !important; }
  #especialidades .spx-nav--prev { left: calc(50% - 78px) !important; }
  #especialidades .spx-nav--next { right: calc(50% - 78px) !important; }
/* SOBRE */
  #sobre { padding: 42px 0 !important; }
  #sobre .about-premium { width: min(100% - 32px, 430px) !important; }
  #sobre .about-premium__intro { display: flex !important; flex-direction: column !important; gap: 22px !important; }
  #sobre .txt-sobre { order: 1 !important; }
  #sobre .img-sobre { order: 2 !important; width: 100% !important; min-height: 0 !important; }
  #sobre .system-kicker { font-size: .58rem !important; }
  #sobre .txt-sobre h2 { margin: 10px 0 14px !important; font-size: clamp(2rem, 9.1vw, 2.6rem) !important; line-height: .95 !important; letter-spacing: -.045em !important; }
  #sobre .txt-sobre h2 span { display: block !important; font-size: .82em !important; margin-top: 4px !important; }
  #sobre .txt-sobre > p { max-width: 42ch !important; font-size: .78rem !important; line-height: 1.58 !important; }
  #sobre .about-path { margin-top: 14px !important; gap: 5px !important; flex-wrap: wrap !important; font-size: .48rem !important; }
  #sobre .img-sobre img { width: 100% !important; height: clamp(250px, 73vw, 320px) !important; object-fit: cover !important; object-position: center 18% !important; border-radius: 14px !important; }
  #sobre .about-image-label { font-size: .48rem !important; }
  #sobre .about-image-signature { left: 10px !important; right: 10px !important; bottom: 10px !important; padding: 9px 11px !important; }
  #sobre .about-image-signature strong { font-size: .72rem !important; }
  #sobre .about-image-signature span { font-size: .48rem !important; }
  #sobre .professional-overview { margin-top: 26px !important; }
  #sobre .career-panel--full > header h3 { max-width: 260px !important; font-size: 1.05rem !important; }
  #sobre .career-timeline { padding-left: 44px !important; }
  #sobre .career-timeline::before { left: 15px !important; }
  #sobre .career-node { left: -44px !important; width: 32px !important; height: 32px !important; font-size: .8rem !important; }
  #sobre .career-timeline article { padding: 11px 0 15px !important; }
  #sobre .career-year { font-size: .67rem !important; }
  #sobre .career-timeline article > strong { font-size: .86rem !important; }
  #sobre .career-timeline article > p { max-width: 34ch !important; font-size: .68rem !important; line-height: 1.48 !important; }
  #sobre .career-next-step { min-height: 40px !important; margin-top: 10px !important; font-size: .6rem !important; }

  /* PORTFÓLIO */
  #portfolio .portfolio-categories { padding-top: 34px !important; }
  #portfolio .portfolio-section-header { margin-bottom: 18px !important; }
  #portfolio .section-title { font-size: 1.5rem !important; }
  #portfolio .portfolio-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 12px !important; }
  #portfolio .portfolio-card { padding: 12px !important; border-radius: 14px !important; }
  #portfolio .portfolio-card-media { height: 170px !important; }
  #portfolio .portfolio-card-body h4 { font-size: 1rem !important; }
  #portfolio .portfolio-card-body p { font-size: .68rem !important; line-height: 1.48 !important; }
  #portfolio .portfolio-card-stack span { font-size: .5rem !important; }
  #portfolio .portfolio-card-metrics { gap: 8px !important; }
  #portfolio .portfolio-card-metrics strong { font-size: .9rem !important; }
  #portfolio .portfolio-card-metrics small { font-size: .48rem !important; }

  /* FOOTER */
  .premium-footer { padding: 30px 0 12px !important; }
  .premium-footer__panel { width: min(100% - 28px, 440px) !important; }
  .premium-footer__main { display: grid !important; grid-template-columns: 1fr !important; gap: 22px !important; padding: 18px !important; }
  .premium-footer__links, .premium-footer__solutions { display: none !important; }
  .premium-footer__pillars { grid-template-columns: 1fr !important; }
  .premium-footer__contact-list strong { overflow-wrap: anywhere !important; }
  .premium-footer__utility { grid-template-columns: 1fr !important; gap: 18px !important; padding: 18px !important; }
  .premium-footer__bottom { display: grid !important; grid-template-columns: 1fr auto !important; gap: 12px !important; padding: 14px 18px !important; }
  .premium-footer__legal, .premium-footer__center-mark, .premium-footer__credit { display: none !important; }
  .premium-footer__bottom small { display: none !important; }
}

@media (max-width: 374px) {
  #inicio .hx-copy h1 { font-size: 2.35rem !important; }
  #inicio .hx-orbit { --orbit-size: 352px !important; height: 338px !important; }
  #sobre .txt-sobre h2 { font-size: 1.85rem !important; }
  #portfolio .portfolio-title { font-size: 1.85rem !important; }
}

@media (min-width: 681px) and (max-width: 1100px) {
  #inicio .hx-layout { max-width: 780px; margin-inline: auto; }
  #inicio .hx-copy h1 { font-size: clamp(4rem, 8vw, 5.6rem) !important; }
  #especialidades .spx-card { min-height: 430px !important; }
  #sobre .about-premium__intro { grid-template-columns: 1fr .82fr !important; align-items: center !important; }
  #sobre .txt-sobre h2 { font-size: clamp(2.6rem, 5.6vw, 4.2rem) !important; }
  #portfolio .portfolio-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
