/* Abertura elevada da marca na página principal. */
.nci { display: none; }
html.nc-intro:not(.nc-out) { overflow: hidden; }
html.nc-intro:not(.nc-out) body > :not(.nci):not(script):not(style) { visibility: hidden; }
.nc-intro .nci {
  --ivory: #f7f0e3; --gold: #d4b06a; --ease: cubic-bezier(.22, 1, .36, 1);
  display: block; position: fixed; inset: 0; z-index: 10000; overflow: hidden;
  color: var(--ivory); font-family: Inter, system-ui, sans-serif; isolation: isolate;
}
.nci-panel { position: absolute; top: 0; bottom: 0; width: 50.1%; background-color: #06140f; will-change: transform; }
.nci-left { left: 0; background-image: radial-gradient(ellipse at 92% 46%, #163f31 0, #0a241c 46%, #04110d 100%); }
.nci-right { right: 0; background-image: radial-gradient(ellipse at 8% 46%, #163f31 0, #0a241c 46%, #04110d 100%); }
.nci-panel::after { content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, #d4b06a66, transparent); opacity: 0; }
.nci-left::after { right: 0; } .nci-right::after { left: 0; }
.nci-atmosphere { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(ellipse at 50% 38%, #d4b06a14, transparent 42%),
  radial-gradient(ellipse at 18% 78%, #1f6b4c18, transparent 48%),
  linear-gradient(125deg, transparent 18%, #f7f0e306 42%, transparent 68%); }
.nci-atmosphere::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 132px, #f7f0e304 132px 133px); opacity: .55; }
.nci-atmosphere i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--gold); opacity: 0; box-shadow: 0 0 10px #d4b06a88; }
.nci-atmosphere i:nth-child(1) { left: 18%; top: 24%; }
.nci-atmosphere i:nth-child(2) { left: 78%; top: 20%; }
.nci-atmosphere i:nth-child(3) { left: 12%; top: 66%; }
.nci-atmosphere i:nth-child(4) { left: 86%; top: 58%; }
.nci-atmosphere i:nth-child(5) { left: 30%; top: 80%; }
.nci-atmosphere i:nth-child(6) { left: 68%; top: 84%; }
.nci-frame { position: absolute; inset: clamp(14px, 2.2vw, 28px); border: 1px solid #d4b06a1f; border-radius: 4px; pointer-events: none; opacity: 0; }
.nci-frame::before, .nci-frame::after { content: ''; position: absolute; width: 36px; height: 36px; border-color: #d4b06a88; border-style: solid; }
.nci-frame::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.nci-frame::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.nci-top, .nci-bottom { position: absolute; left: clamp(28px, 5vw, 76px); right: clamp(28px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 2; opacity: 0; }
.nci-top { top: max(30px, env(safe-area-inset-top)); padding-top: 14px; justify-content: center; }
.nci-signature { font-size: 10px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #f7f0e399; }
.nci-stage { position: absolute; inset: 90px 24px 98px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 0; }
.nci-crest { position: relative; flex: none; width: clamp(148px, 22vh, 196px); aspect-ratio: 1; margin-bottom: clamp(22px, 3.6vh, 38px); opacity: 0; }
.nci-orbit { position: absolute; width: 100%; height: 100%; inset: 0; overflow: visible; transform: rotate(-90deg); transform-origin: 50% 50%; will-change: transform; }
.nci-orbit circle { stroke: #d4b06a2e; stroke-width: .7; }
.nci-orbit path { stroke: var(--gold); stroke-width: 1.1; stroke-dasharray: 164; stroke-dashoffset: 164; filter: drop-shadow(0 0 6px #d4b06a55); }
.nci-medallion { position: absolute; inset: 14%; border-radius: 50%; display: grid; place-items: center; overflow: hidden; border: 1px solid #f1d7a4; background: linear-gradient(145deg, #fffaf1, #e6d5b4 55%, #d9c297); box-shadow: 0 0 0 1px #d4b06a22, 0 0 40px #d4b06a1a, 0 18px 48px #0006; transform-origin: 50% 50%; will-change: transform; }
.nci-medallion img { width: 78%; height: auto; display: block; transform-origin: 50% 50%; }
.nci-glint { position: absolute; inset: -18%; background: linear-gradient(112deg, transparent 38%, #ffffffb8 49%, transparent 60%); transform: translateX(-120%); }
.nci-crest-label { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 12px; white-space: nowrap; color: #d4b06a99; font-size: 8px; text-transform: uppercase; letter-spacing: .28em; opacity: 0; }
.nci-word { display: grid; justify-items: center; gap: 8px; }
.nci-national { display: flex; justify-content: center; perspective: 700px; font: 600 clamp(48px, 7vw, 92px)/1.06 Poppins, Inter, sans-serif; letter-spacing: -.05em; text-shadow: 0 8px 40px #0003; }
.nci-commerce { display: flex; justify-content: center; gap: .38em; font-size: clamp(11px, 1.4vw, 16px); font-weight: 500; line-height: 1.6; text-transform: uppercase; color: var(--gold); letter-spacing: 0; }
.nci-national b, .nci-commerce b { display: inline-block; font-weight: inherit; opacity: 0; transform-origin: 50% 100%; }
.nci-divider { display: flex; align-items: center; gap: 14px; margin: clamp(16px, 2.8vh, 28px) 0 14px; color: var(--gold); font-size: 7px; opacity: 0; transform: scaleX(.4); }
.nci-divider i { width: 48px; height: 1px; background: linear-gradient(90deg, transparent, #d4b06a99); }
.nci-divider i:last-child { transform: rotate(180deg); }
.nci-tag { margin: 0; color: #f7f0e399; font-size: clamp(13px, 1.25vw, 16px); line-height: 1.7; letter-spacing: .01em; opacity: 0; }
.nci-tag strong { font-weight: 500; color: var(--ivory); }
.nci-bottom { bottom: max(38px, env(safe-area-inset-bottom)); padding-bottom: 10px; color: #f7f0e366; font-size: 9px; line-height: 1.6; text-transform: uppercase; letter-spacing: .16em; }
.nci-welcome { display: flex; align-items: center; white-space: nowrap; gap: 12px; color: #d4b06aa8; }
.nci-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px #d4b06a88; }
.nci-line { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; overflow: hidden; }
.nci-line i { display: block; height: 100%; background: linear-gradient(90deg, #d4b06a08, #e4c58a, #fff4dc); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px #d4b06a66; }
.nci-atmosphere::after { content: ''; position: absolute; inset: -30%; background: linear-gradient(110deg, transparent 42%, #e4c58a12 49%, #e4c58a05 52%, transparent 58%); transform: translateX(-72%); }

.nci.play .nci-stage { opacity: 1; }
.nci.play .nci-frame { animation: nciFade 1.1s ease .15s both; }
.nci.play .nci-top, .nci.play .nci-bottom { animation: nciFade 1s ease .35s both; }
.nci.play .nci-crest { animation: nciCrest 1.35s var(--ease) .2s both; }
.nci.play .nci-orbit { animation: nciOrbitSpin 16s linear .7s infinite; }
.nci.play .nci-orbit path { animation: nciDraw 2.1s ease .55s both; }
.nci.play .nci-medallion { animation: nciLogoSpin 2.8s cubic-bezier(.16, 1, .3, 1) .25s both, nciLogoDrift 9s linear 3.05s infinite; }
.nci.play .nci-glint { animation: nciGlint 1.15s ease 1.55s both; }
.nci.play .nci-crest-label { animation: nciFade .9s ease 1.45s both; }
.nci.play .nci-national b { animation: nciLetter 1s var(--ease) calc(.95s + var(--i) * .05s) both; }
.nci.play .nci-commerce b { animation: nciCommerce .9s var(--ease) calc(1.35s + var(--i) * .045s) both; }
.nci.play .nci-divider { animation: nciDivider 1s var(--ease) 1.85s both; }
.nci.play .nci-tag { animation: nciRise .95s var(--ease) 2.05s both; }
.nci.play .nci-atmosphere i { animation: nciSpark 2.8s ease .5s both; }
.nci.play .nci-atmosphere i:nth-child(even) { animation-delay: .95s; }
.nci.play .nci-line i { animation: nciProgress 4.8s cubic-bezier(.4, 0, .2, 1) both; }
.nci.play .nci-atmosphere::after { animation: nciLight 4.8s cubic-bezier(.3, 0, .3, 1) both; }

@keyframes nciCrest { from { opacity: 0; transform: translateY(28px) scale(.82); } to { opacity: 1; transform: none; } }
@keyframes nciOrbitSpin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
@keyframes nciLogoSpin {
  0% { opacity: 0; transform: rotate(-360deg) scale(.68); filter: blur(3px); }
  58% { opacity: 1; filter: blur(0); }
  82% { transform: rotate(14deg) scale(1.05); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); filter: none; }
}
@keyframes nciLogoDrift { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes nciLetter { from { opacity: 0; transform: translateY(36px) rotateX(-70deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes nciCommerce { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes nciDraw { to { stroke-dashoffset: 0; } }
@keyframes nciGlint { to { transform: translateX(120%); } }
@keyframes nciDivider { from { opacity: 0; transform: scaleX(.35); } to { opacity: 1; transform: scaleX(1); } }
@keyframes nciFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nciRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes nciSpark { 0%, 100% { opacity: 0; } 40% { opacity: .7; } }
@keyframes nciProgress { to { transform: scaleX(1); } }
@keyframes nciLight { to { transform: translateX(72%); } }

.nc-out .nci { pointer-events: none; }
.nc-out .nci-left { animation: nciCurtainLeft .88s cubic-bezier(.76, 0, .24, 1) both; }
.nc-out .nci-right { animation: nciCurtainRight .88s cubic-bezier(.76, 0, .24, 1) both; }
.nc-out .nci-panel::after { opacity: 1; }
.nc-out .nci-stage { animation: nciDepart .5s cubic-bezier(.4, 0, .5, 1) both; }
.nc-out .nci-atmosphere, .nc-out .nci-frame, .nc-out .nci-top, .nc-out .nci-bottom, .nc-out .nci-line { animation: nciVanish .32s ease both; }
.nc-out .nav { animation: nciEnter .7s var(--ease) .08s both; }
.nc-out .hero-copy { animation: nciEnter .75s var(--ease) .1s both; }
.nc-out #heroPhoto { animation: nciEnter .8s var(--ease) .06s both; }
@keyframes nciCurtainLeft { to { transform: translateX(-101%); } }
@keyframes nciCurtainRight { to { transform: translateX(101%); } }
@keyframes nciDepart { to { opacity: 0; transform: translateY(-28px) scale(1.04); filter: blur(2px); } }
@keyframes nciVanish { to { opacity: 0; } }
@keyframes nciEnter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .nci-top { top: max(22px, env(safe-area-inset-top)); padding-top: 6px; }
  .nci-signature { font-size: 9px; letter-spacing: .22em; }
  .nci-stage { inset: 84px 16px 96px; }
  .nci-crest { width: clamp(156px, 42vw, 188px); margin-bottom: 28px; }
  .nci-medallion { inset: 12%; }
  .nci-medallion img { width: 82%; }
  .nci-national { font-size: clamp(42px, 11.5vw, 62px); }
  .nci-commerce { font-size: 11px; gap: .32em; }
  .nci-bottom { align-items: flex-end; bottom: max(24px, env(safe-area-inset-bottom)); font-size: 8px; }
  .nci-bottom > span:first-child { max-width: 140px; line-height: 1.8; }
}
@media (max-height: 570px) {
  .nci-stage { inset: 72px 24px 72px; }
  .nci-crest { width: 128px; margin-bottom: 18px; }
  .nci-national { font-size: 40px; }
  .nci-commerce { font-size: 10px; }
  .nci-divider { margin: 10px 0 8px; }
  .nci-tag { font-size: 12px; line-height: 1.45; }
}
@media (max-height: 430px) and (min-width: 600px) {
  .nci-stage { display: grid; grid-template-columns: 130px auto; column-gap: 28px; align-content: center; justify-content: center; }
  .nci-crest { grid-row: 1 / 4; width: 124px; margin: 0; }
  .nci-national { font-size: 42px; }
  .nci-divider { margin: 8px 0 6px; }
  .nci-tag br { display: none; }
}
/* Abertura da marca permanece animada mesmo com redução de movimento do SO. */
@media (prefers-reduced-motion: reduce) {
  .nci.play .nci-atmosphere i, .nci.play .nci-atmosphere::after, .nci.play .nci-glint { animation: none; opacity: 1; transform: none; }
  .nci.play .nci-glint { opacity: 0; }
}
