.identity-hero { position: relative; overflow: clip; background: var(--paper); color: var(--ink); }
.identity-scene { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 640px) 1fr; grid-template-rows: minmax(440px, 59svh) auto; isolation: isolate; }
.identity-portrait {
  position: relative; grid-column: 2; grid-row: 1; min-width: 0; overflow: hidden;
  /* Ease the alpha to zero before the crop; avoid a visible horizontal fade edge. */
  --portrait-fade: linear-gradient(to bottom, #000 60%, rgb(0 0 0 / .98) 64%, rgb(0 0 0 / .92) 68%, rgb(0 0 0 / .80) 72%, rgb(0 0 0 / .64) 76%, rgb(0 0 0 / .44) 80%, rgb(0 0 0 / .25) 84%, rgb(0 0 0 / .11) 88%, rgb(0 0 0 / .025) 92%, transparent 96%);
  -webkit-mask-image: var(--portrait-fade);
  mask-image: var(--portrait-fade);
}
.identity-portrait-frame { position: absolute; inset: 0; width: 100%; height: 140%; }
.identity-portrait-frame > img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.identity-image-fallback { display: grid; place-items: center; height: 65%; font-size: 14px; }
.identity-copy { position: absolute; z-index: 2; top: 24%; left: 72%; right: var(--gutter); padding-block: 0; }
.identity-copy > p { font-size: clamp(25px, 2.45vw, 38px); line-height: 1.16; letter-spacing: -.03em; }
.identity-copy .identity-description { max-width: 32ch; margin-top: 18px; color: var(--soft); font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.identity-name { position: relative; z-index: 1; grid-column: 1 / -1; grid-row: 2; overflow: hidden; padding: 10px 0 24px; background: var(--paper); color: var(--ink); font-size: clamp(110px, 14.4vw, 240px); font-weight: 400; line-height: 1.1; letter-spacing: -.055em; pointer-events: none; }
.name-track { display: flex; width: max-content; transform: translateX(-3vw); }
.name-repeat { display: block; flex-shrink: 0; white-space: nowrap; padding-right: .12em; }
.name-divider { padding-left: .09em; }
.identity-scene > .motion-toggle { position: absolute; top: 18px; left: var(--gutter); bottom: auto; z-index: 3; }
.hero-scroll { position: absolute; top: 20px; right: var(--gutter); display: grid; place-items: center; width: 44px; height: 44px; font-size: 28px; }
.identity-hero :focus-visible { outline-color: var(--ink); }
@media (max-width: 1200px) {
  .identity-scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: clamp(300px, 48svh, 530px) auto auto; }
  .identity-portrait { grid-column: 1; grid-row: 1; width: min(100%, 620px); justify-self: center; }
  .identity-portrait-frame { height: 145%; }
  .identity-name { grid-row: 2; padding-block: 10px 18px; font-size: clamp(84px, 15vw, 172px); }
  .identity-copy { position: relative; inset: auto; grid-column: 1; grid-row: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; padding: 16px var(--gutter) 44px; }
  .identity-copy > p { max-width: 28ch; font-size: clamp(24px, 3vw, 32px); }
  .identity-copy .identity-description { grid-column: 2; grid-row: 1 / 3; align-self: center; margin-top: 0; max-width: 42ch; }
  .identity-copy .hero-actions { grid-column: 1; margin-top: 8px; }
  .hero-scroll { display: none; }
}
@media (max-width: 760px) {
  .identity-scene { grid-template-rows: clamp(260px, 37svh, 360px) auto auto; }
  .identity-portrait { width: min(100%, 440px); }
  .identity-portrait-frame { height: 148%; }
  .identity-copy { display: block; padding-block: 14px 36px; }
  .identity-copy > p { font-size: 25px; }
  .identity-copy .identity-description { margin-top: 12px; font-size: 15px; }
  .identity-copy .hero-actions { margin-top: 20px; }
  .identity-name { font-size: clamp(70px, 17vw, 128px); }
  .identity-scene > .motion-toggle { top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .identity-name { font-size: clamp(40px, 9.3vw, 144px); text-align: center; }
  .name-track { width: 100%; transform: none !important; }
  .name-repeat { width: 100%; padding: 0; }
  .name-repeat:not(:first-child), .name-divider { display: none !important; }
}

/* Introdução em várias línguas (25/11/2026): uma vez por sessão, em bordeaux, sobe como uma cortina.
   html[data-intro="play"] mostra a cortina desde o primeiro desenho; a animação de segurança tira-a se o script falhar. */
@property --intro-curve { syntax: '<length-percentage>'; inherits: false; initial-value: 0vh; }
.intro-overlay:focus { outline: none; }
.intro-overlay { cursor: pointer; position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: #6e1423; color: #efe6d8; will-change: transform; }
.intro-overlay[hidden] { display: none; }
html[data-intro="play"] { overflow: hidden; }
html[data-intro="play"] .intro-overlay[hidden] { display: grid; animation: intro-failsafe 0s 7s forwards; }
@keyframes intro-failsafe { to { visibility: hidden; } }
.intro-overlay::after { content: ''; position: absolute; top: calc(100% - 1px); left: -10%; width: 120%; height: var(--intro-curve); border-radius: 0 0 50% 50%; background: inherit; }
.intro-greeting { display: flex; align-items: center; gap: 22px; font-size: clamp(40px, 4.4vw, 72px); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.intro-greeting::before { content: ''; flex: none; width: .2em; height: .2em; border-radius: 50%; background: #ff9a76; }
.intro-words { position: relative; display: grid; overflow: hidden; padding-block: .14em; transition: width .32s cubic-bezier(.16,1,.3,1); }
.intro-word { grid-area: 1 / 1; white-space: nowrap; }
html[data-intro="play"] .intro-word { opacity: 0; transform: translateY(105%); }
