/* Home: perfil lateral + painel navegável, inspirado na referência e adaptado à identidade areia do portfólio. */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-semibold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-bold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

body.portfolio-shell {
  /* Paleta original do portfólio: areia domina a página, carvão sustenta
     texto e a coluna de perfil, verde entra só em acento. */
  --profile-bg: #efe7da;
  --profile-bg-deep: #e0d4c0;
  --profile-surface: #fffaf2;
  --profile-surface-raised: #f4ebdd;
  --profile-surface-soft: #e6dbc8;
  --profile-text: #20231f;
  --profile-text-secondary: #4a4f47;
  --profile-text-muted: #5c6159;
  --profile-accent: #3f5807;
  --profile-accent-soft: rgb(201 244 61 / 38%);
  --profile-accent-bright: #c9f43d;
  --profile-on-accent: #20231f;
  --profile-border: #ddd1bf;
  --profile-border-strong: #c2b49c;
  --profile-shadow: rgb(58 47 30 / 10%);
  --profile-shadow-raised: rgb(58 47 30 / 16%);
  --profile-radius: 1.25rem;
  --profile-radius-small: 0.9rem;
  --profile-max: 78rem;
  --profile-sidebar: 18.5rem;
  --font-body: "Poppins", "Manrope", sans-serif;
  --font-display: "Poppins", "Manrope", sans-serif;

  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color-scheme: light;
  background:
    radial-gradient(circle at 8% 7%, rgb(201 244 61 / 22%), transparent 24rem),
    radial-gradient(circle at 94% 92%, rgb(201 244 61 / 14%), transparent 26rem),
    var(--profile-bg);
  color: var(--profile-text);
  font-family: var(--font-body);
  line-height: 1.65;
}

.portfolio-shell * {
  box-sizing: border-box;
}

.portfolio-shell a {
  color: inherit;
}

.portfolio-shell :where(a, button, select):focus-visible {
  outline: 0.1875rem solid var(--profile-accent);
  outline-offset: 0.2rem;
}

.portfolio-shell .skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.75rem;
  background: var(--profile-accent-bright);
  color: var(--profile-on-accent);
  font-weight: 800;
  text-decoration: none;
}

.portfolio-shell .skip-link:focus {
  transform: translateY(0);
}

.profile-page {
  width: min(calc(100% - 2rem), var(--profile-max));
  margin-inline: auto;
  padding-block: clamp(1rem, 3vw, 2.4rem);
}

.profile-layout {
  display: grid;
  grid-template-columns: var(--profile-sidebar) minmax(0, 1fr);
  gap: 1.3rem;
  align-items: start;
}

/* Perfil lateral */
.portfolio-shell .hero.profile-card {
  --profile-surface: #20231f;
  --profile-surface-raised: #2b2f29;
  --profile-surface-soft: #363b34;
  --profile-text: #f6f1e7;
  --profile-text-secondary: #d7d1c4;
  --profile-text-muted: #b6b1a4;
  --profile-accent: #c9f43d;
  --profile-accent-soft: rgb(201 244 61 / 18%);
  --profile-border: #3b3f38;

  position: sticky;
  top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  min-height: 0;
  padding: 1.4rem;
  overflow: visible;
  border: 1px solid var(--profile-border);
  border-radius: var(--profile-radius);
  background: var(--profile-surface);
  box-shadow: 0 1rem 2.8rem var(--profile-shadow);
}

.portfolio-shell .hero.profile-card::before {
  display: none;
  content: none;
}

.profile-contacts-toggle {
  align-self: flex-end;
  justify-self: end;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: -0.35rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--profile-border);
  border-radius: 999px;
  background: var(--profile-surface-raised);
  color: var(--profile-accent);
  font: inherit;
  font-size: 0.6rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0.5rem 1.2rem var(--profile-shadow);
}

.profile-contacts-toggle svg {
  transition: transform 200ms ease-out;
}

.profile-contacts-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.profile-contacts-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 240ms ease-out;
}

.profile-contacts-panel[data-collapsed] {
  grid-template-rows: 0fr;
}

.profile-contacts-panel__inner {
  min-height: 0;
  overflow: hidden;
}

.profile-contacts-panel .profile-divider {
  margin-top: 0;
}

.profile-photo-wrap {
  position: relative;
  width: 9.5rem;
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border: 0.35rem solid var(--profile-surface-raised);
  border-radius: 50%;
  background: var(--profile-surface-soft);
  box-shadow: 0 0 0 1px var(--profile-border), 0 0.85rem 2rem var(--profile-shadow);
}

.profile-photo-wrap::after {
  display: none;
  content: none;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-identity {
  display: grid;
  justify-items: center;
  gap: 0.38rem;
  text-align: center;
}

.portfolio-shell .profile-identity h1 {
  display: block;
  margin: 0;
  color: var(--profile-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.portfolio-shell .hero p.profile-role {
  margin: 0;
  max-width: none;
  color: var(--profile-text-secondary);
  font-size: 0.9rem;
}

.profile-divider {
  width: 100%;
  height: 1px;
  margin: 0.15rem 0;
  border: 0;
  background: var(--profile-border);
}

.profile-contact-list,
.profile-socials,
.hero__proof,
.project-grid,
.stack-list,
.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-contact-list {
  display: grid;
  gap: 0.7rem;
}

.profile-contact-item {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
}

.profile-contact-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--profile-border);
  border-radius: 0.7rem;
  background: var(--profile-surface-raised);
  color: var(--profile-accent);
}

.profile-contact-glyph {
  width: 1.15rem;
  height: 1.15rem;
}

.profile-contact-copy {
  min-width: 0;
}

.profile-contact-copy small {
  display: block;
  color: var(--profile-text-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-contact-copy a,
.profile-contact-copy span {
  display: flex;
  min-height: 3rem;
  align-items: center;
  overflow: hidden;
  color: var(--profile-text-secondary);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.profile-contact-copy a:hover {
  color: var(--profile-accent);
}

.profile-socials {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.profile-socials a {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--profile-border);
  border-radius: 0.75rem;
  background: var(--profile-surface-raised);
  color: var(--profile-text-secondary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}

.profile-socials a:hover {
  color: var(--profile-accent);
  transform: translateY(-2px);
}

.portfolio-shell .hero .button {
  display: inline-flex;
  width: 100%;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--profile-accent-bright);
  color: var(--profile-on-accent);
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}

.portfolio-shell .hero .button:hover {
  background: var(--profile-accent-bright);
  color: var(--profile-on-accent);
  transform: translateY(-2px);
}

/* Painel principal */
.profile-content {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--profile-border);
  border-radius: var(--profile-radius);
  background: var(--profile-surface);
  box-shadow: 0 1rem 2.8rem var(--profile-shadow);
}

.profile-tabs {
  position: relative;
  z-index: 20;
  display: flex;
  min-width: 0;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.15rem;
  width: 100%;
  margin: 0;
  padding: 0 1rem;
  border-bottom: 1px solid var(--profile-border);
  background: rgb(255 250 242 / 92%);
  backdrop-filter: blur(0.8rem);
}

.profile-tabs a {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 3rem;
  min-height: 4.25rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.8rem;
  color: var(--profile-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.profile-tabs a::after {
  position: absolute;
  right: 0.8rem;
  bottom: -1px;
  left: 0.8rem;
  height: 2px;
  border-radius: 99px;
  background: var(--profile-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.profile-tabs a:hover,
.profile-tabs a[aria-current="page"] {
  color: var(--profile-text);
}

.profile-tabs a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.profile-panel-stage {
  position: relative;
  min-height: 42rem;
}

.profile-panel {
  padding: clamp(1.5rem, 4vw, 2.8rem);
}

.profile-panel:not([data-active]) {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.profile-panel[data-active] {
  position: relative;
  visibility: visible;
  opacity: 1;
}

.panel-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.panel-heading--projects {
  margin-bottom: 1.45rem;
}

.panel-kicker,
.portfolio-shell .eyebrow {
  margin: 0;
  color: var(--profile-accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-shell .eyebrow::before,
.portfolio-shell .eyebrow::after {
  display: none;
  content: none;
}

.panel-heading h2,
.panel-section h3,
.contact-card h3,
.about-lead h3,
.experience-summary h3 {
  margin: 0;
  color: var(--profile-text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.panel-heading h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1;
}

/* Uma frase por linha em qualquer largura: no celular a quebra automática
   partia o "Menos planilhas." no meio e desmontava o ritmo do título. */
.headline-lines span {
  display: block;
}

.panel-heading--projects h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.panel-heading p:last-child {
  max-width: 62ch;
  margin: 0;
  color: var(--profile-text-secondary);
  font-size: 0.94rem;
}

/* Sobre */
.portfolio-shell .hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(15rem, 0.9fr);
  align-items: stretch;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.about-lead,
.about-note,
.hero__transformation,
.service-card,
.process-card,
.stack-item,
.experience-summary,
.contact-card {
  border: 0;
  border-radius: var(--profile-radius-small);
  background: var(--profile-surface-raised);
  box-shadow: none;
}

.about-lead,
.about-note {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  min-height: 100%;
  padding: 1.3rem;
}

.about-lead h3,
.experience-summary h3 {
  font-size: 1.25rem;
  line-height: 1.15;
}

.about-lead p,
.about-note p {
  margin: 0;
  color: var(--profile-text-secondary);
  font-size: 0.86rem;
}

.about-note strong {
  max-width: 19ch;
  color: var(--profile-text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.18;
}

.portfolio-shell .hero__proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 0 0 0.8rem;
}

.portfolio-shell .hero__proof li {
  display: block;
  min-height: 8rem;
  padding: 1rem;
  border: 0;
  border-radius: 0.85rem;
  background: var(--profile-surface-raised);
  box-shadow: none;
  color: var(--profile-text-secondary);
  font-size: 0.78rem;
}

.portfolio-shell .hero__proof li > span {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--profile-accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.portfolio-shell .hero__proof strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--profile-text);
  font-size: 0.85rem;
}

.portfolio-shell .hero__proof p {
  margin: 0;
  max-width: none;
  color: var(--profile-text-secondary);
  font-size: 0.76rem;
}

.portfolio-shell .hero__transformation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  padding: 1.1rem 1.2rem;
  background: var(--profile-surface-soft);
  color: var(--profile-text);
}

.portfolio-shell .hero__state,
.portfolio-shell .hero__state--after {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.hero__state small {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--profile-text-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-shell .hero__state strong {
  color: var(--profile-text-secondary);
  font-size: 0.84rem;
}

.portfolio-shell .hero__state--after strong {
  color: var(--profile-text);
}

.portfolio-shell .hero__state-arrow {
  color: var(--profile-accent);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
}

.panel-section {
  margin-top: 2.4rem;
}

.panel-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-section-heading h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.service-card {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.1rem;
}

.service-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.7rem;
  background: var(--profile-accent-soft);
  color: var(--profile-accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
}

.service-card h4 {
  margin: 0 0 0.35rem;
  color: var(--profile-text);
  font-size: 0.92rem;
}

.service-card p {
  margin: 0;
  color: var(--profile-text-muted);
  font-size: 0.78rem;
}

/* Experiência */
.experience-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.experience-summary,
.experience-summary {
  display: grid;
  gap: 0.7rem;
}

.experience-summary p,
.portfolio-shell .process-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  margin: 0;
}

.portfolio-shell .process-list > li,
.process-card {
  padding: 1.05rem;
  box-shadow: none;
}

.process-card {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.9rem;
}

.process-card__number {
  color: var(--profile-accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.process-card h4 {
  margin: 0 0 0.3rem;
  color: var(--profile-text);
  font-size: 0.9rem;
}

.process-card p {
  margin: 0;
  color: var(--profile-text-muted);
  font-size: 0.78rem;
}

.stack-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.stack-item {
  padding: 1rem 1.05rem;
}

.stack-item small {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--profile-text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stack-item strong {
  color: var(--profile-text);
  font-size: 0.84rem;
}

.stack-item {
  text-align: center;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.tech-list li {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  width: 4.5rem;
  color: var(--profile-text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
}

.tech-icon {
  width: 1.85rem;
  height: 1.85rem;
  object-fit: contain;
}

/* Projetos — grade da vitrine */
.portfolio-shell .project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  margin: 0;
}

.portfolio-shell .project-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  min-width: 0;
  gap: 0.75rem;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}

.portfolio-shell .project-grid > .project-card:first-child {
  box-shadow: none;
}

.portfolio-shell .project-card::before,
.portfolio-shell .project-card::after {
  display: none;
  content: none;
}

.portfolio-shell .project-card:hover {
  transform: translateY(-3px);
}

.portfolio-shell .project-card[data-filtered-out] {
  display: none;
}

.project-visual {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 12.5rem;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  place-items: center;
  border: 0;
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--profile-surface), var(--profile-surface-soft));
  color: var(--profile-text);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--profile-border);
}

.project-visual--image {
  place-items: stretch;
  background: var(--profile-surface-soft);
}

.project-visual--image::before,
.project-visual--image::after {
  display: none;
}

.project-visual--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 220ms ease-out;
}

.project-card:hover .project-visual--image img {
  transform: scale(1.025);
}

.project-mark {
  position: relative;
  z-index: 1;
  color: var(--profile-text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.project-mark span {
  color: var(--profile-accent);
}

/* Medidas em porcentagem da vitrine: a marca ocupa a mesma proporção do
   cartão no desktop e no celular, onde o cartão encolhe. */
.project-logo {
  position: relative;
  z-index: 1;
  max-width: 74%;
  max-height: 62%;
  object-fit: contain;
}

.project-logo--sape {
  max-width: 66%;
}

/* Ícone de app: quadrado, com o mesmo raio da vitrine. */
.project-logo--corneteiro {
  width: 46%;
  max-width: 46%;
  height: auto;
  max-height: none;
  border-radius: 22%;
}

.project-card__body {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.2rem;
}

.project-card__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.portfolio-shell .project-card h3 {
  margin: 0;
  color: var(--profile-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.portfolio-shell [data-status-label] {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  color: var(--profile-accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portfolio-shell [data-status-label]::before {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentcolor;
  content: "";
}

.project-category {
  margin: 0;
  color: var(--profile-accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.project-card__problem {
  margin: 0.2rem 0 0;
  color: var(--profile-text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.portfolio-shell .project-card .text-link {
  display: inline-flex;
  width: fit-content;
  min-width: 3rem;
  min-height: 3rem;
  align-items: center;
  margin-top: 0.15rem;
  color: var(--profile-text);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--profile-accent);
  text-underline-offset: 0.24rem;
}

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-card {
  padding: 1.25rem;
}

.contact-card--primary {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 92% 12%, rgb(201 244 61 / 45%), transparent 28%),
    var(--profile-surface-raised);
}

.contact-card h3 {
  margin: 0.45rem 0 0.55rem;
  font-size: 1.2rem;
}

.contact-card p {
  margin: 0 0 0.85rem;
  color: var(--profile-text-muted);
  font-size: 0.82rem;
}

.contact-card a {
  display: inline-flex;
  min-width: 3rem;
  min-height: 3rem;
  align-items: center;
  color: var(--profile-text);
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration-color: var(--profile-accent);
  text-underline-offset: 0.25rem;
}

.contact-card--primary a {
  justify-content: center;
  padding-inline: 1rem;
  border-radius: 0.75rem;
  background: var(--profile-accent-bright);
  color: var(--profile-on-accent);
  text-decoration: none;
}

/* Rodapé */
.portfolio-shell .site-footer {
  margin: 0;
  padding: 1rem clamp(1.5rem, 4vw, 2.8rem);
  border-top: 1px solid var(--profile-border);
  background: transparent;
  color: var(--profile-text-muted);
}

.profile-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.portfolio-shell .site-footer p {
  margin: 0;
  font-size: 0.72rem;
}

.portfolio-shell .site-footer a {
  display: inline-flex;
  min-width: 3rem;
  min-height: 3rem;
  align-items: center;
  color: var(--profile-text-secondary);
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  body.portfolio-shell {
    --profile-sidebar: 16.5rem;
  }

  .profile-layout {
    grid-template-columns: var(--profile-sidebar) minmax(0, 1fr);
  }

  .portfolio-shell .project-grid,
  .services-grid,
  .stack-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .profile-page {
    width: min(calc(100% - 1rem), 46rem);
    padding-block: 0.5rem 1rem;
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .portfolio-shell .hero.profile-card {
    position: relative;
    top: auto;
    display: grid;
    min-height: auto;
    padding: 1.15rem;
  }

  .profile-photo-wrap {
    width: 8.25rem;
  }

  .profile-contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-tabs {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    padding: 0.3rem calc(0.3rem + env(safe-area-inset-left, 0px)) calc(0.3rem + env(safe-area-inset-bottom, 0px)) calc(0.3rem + env(safe-area-inset-right, 0px));
    border: 0;
    border-top: 1px solid var(--profile-border);
    border-radius: 0;
    background: rgb(255 250 242 / 96%);
    backdrop-filter: blur(0.8rem);
    box-shadow: 0 -0.5rem 1.5rem var(--profile-shadow);
  }

  .profile-tabs a {
    min-height: 3.4rem;
    justify-content: center;
    padding: 0.4rem;
    border-radius: 0.65rem;
    font-size: 0.72rem;
    text-align: center;
  }

  .profile-tabs a::after {
    top: 0.3rem;
    right: auto;
    bottom: auto;
    left: 50%;
    width: 1.4rem;
    height: 2px;
    transform: translateX(-50%) scaleX(0.4);
  }

  .profile-tabs a[aria-current="page"]::after {
    transform: translateX(-50%) scaleX(1);
  }

  .profile-panel-stage {
    min-height: 0;
  }

  .profile-panel {
    padding: 1.25rem;
  }

  .portfolio-shell .hero__layout,
  .experience-intro,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-shell .hero__proof {
    grid-template-columns: 1fr;
  }

  .portfolio-shell .hero__proof li {
    min-height: auto;
  }

  .portfolio-shell .hero__transformation {
    grid-template-columns: 1fr;
  }

  .portfolio-shell .hero__state-arrow {
    transform: rotate(90deg);
  }

  .contact-card--primary {
    grid-column: auto;
  }

  .panel-heading h2 {
    max-width: none;
  }

  /* No celular a fonte precisa ceder para caber uma frase inteira por
     linha; do contrário a quebra acontece dentro da frase. */
  .headline-lines {
    font-size: clamp(1.35rem, 6.5vw, 2rem);
  }
}

@media (max-width: 620px) {
  .profile-contact-list {
    grid-template-columns: 1fr;
  }

  .portfolio-shell .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
  }

  .project-visual {
    min-height: 11rem;
  }

  .process-card {
    grid-template-columns: 2rem minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-shell *,
  .portfolio-shell *::before,
  .portfolio-shell *::after {
    scroll-behavior: auto !important;
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}
.visual-demo-replay-slot {
  margin: 1.6rem 0 0;
}
